mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
76e6d3cba7
Kind fields/methods now exported vmRem renamed vm in examples/tests. prefer short variable name. minor version bump
27 lines
336 B
Go
27 lines
336 B
Go
package voicemeeter_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/onyx-and-iris/voicemeeter-api-go"
|
|
)
|
|
|
|
var (
|
|
vm = voicemeeter.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() {
|
|
}
|
|
}
|