mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 05:23:31 +00:00
float/string getter/setter tests added
test helper added
This commit is contained in:
24
helper_test.go
Normal file
24
helper_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package voicemeeter
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
vm = NewRemote("potato")
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
vm.Login()
|
||||
code := m.Run()
|
||||
vm.Logout()
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
func sync() {
|
||||
time.Sleep(30 * time.Millisecond)
|
||||
for vm.Pdirty() || vm.Mdirty() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user