mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 21:43:30 +00:00
tests/examples updated with v2 changes
getCmd in vm-cli always prints value.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user