mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
dd895daffb
test helper added
25 lines
271 B
Go
25 lines
271 B
Go
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() {
|
|
}
|
|
}
|