tests/examples updated with v2 changes

getCmd in vm-cli always prints value.
This commit is contained in:
2022-12-08 10:52:15 +00:00
parent c4f00a3dbd
commit 7f2646ca6e
6 changed files with 150 additions and 114 deletions

View File

@@ -1,14 +1,17 @@
package voicemeeter_test
import (
"log"
"bytes"
"testing"
"github.com/onyx-and-iris/voicemeeter"
log "github.com/sirupsen/logrus"
"github.com/onyx-and-iris/voicemeeter/v2"
)
var (
vm, err = voicemeeter.NewRemote("potato", 30)
logstring bytes.Buffer
vm, err = voicemeeter.NewRemote("potato", 30)
)
func TestMain(m *testing.M) {
@@ -22,5 +25,7 @@ func TestMain(m *testing.M) {
}
defer vm.Logout()
log.SetOutput(&logstring)
m.Run()
}