mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-25 14:20:50 +00:00
a7abc43726
remote sync from setters. add sync to tests.
27 lines
363 B
Go
27 lines
363 B
Go
package voicemeeter_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/onyx-and-iris/voicemeeter-api-go/voicemeeter"
|
|
)
|
|
|
|
var (
|
|
vmRem = voicemeeter.GetRemote("potato")
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
vmRem.Login()
|
|
code := m.Run()
|
|
vmRem.Logout()
|
|
os.Exit(code)
|
|
}
|
|
|
|
func sync() {
|
|
time.Sleep(30 * time.Millisecond)
|
|
for vmRem.Pdirty() || vmRem.Mdirty() {
|
|
}
|
|
}
|