voicemeeter/tests/helper_test.go
onyx-and-iris 1efac19b12 docstrings added to functions, types and methods
CHANGELOG first update

pre-commit updated to look in root of repo.

version retraction added to go.mod

README updated to reflect changes
2022-07-10 23:08:14 +01:00

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() {
}
}