mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
1efac19b12
CHANGELOG first update pre-commit updated to look in root of repo. version retraction added to go.mod README updated to reflect changes
27 lines
351 B
Go
27 lines
351 B
Go
package voicemeeter_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/onyx-and-iris/voicemeeter-api-go"
|
|
)
|
|
|
|
var (
|
|
vmRem = voicemeeter.NewRemote("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() {
|
|
}
|
|
}
|