float/string getter/setter tests added

test helper added
This commit is contained in:
onyx-and-iris
2022-08-22 22:34:03 +01:00
parent 87a05d81e4
commit dd895daffb
2 changed files with 45 additions and 0 deletions

24
helper_test.go Normal file
View 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() {
}
}