Skip to content

Commit 5274033

Browse files
committed
Remove require from wav test
testify requires cgo on linux without certain go debug flags set. We should stop using it.
1 parent 21b3409 commit 5274033

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

wav/wav_test.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ import (
55
"os"
66
"testing"
77
"time"
8-
9-
"github.com/stretchr/testify/require"
108
)
119

1210
func TestBasicWav(t *testing.T) {
1311
fmt.Println("Running Basic Wav")
1412
f, err := os.Open("test.wav")
1513
fmt.Println(f)
16-
require.Nil(t, err)
14+
if err != nil {
15+
t.Fatal("expected open err to be nil, was", err)
16+
}
1717
a, err := Load(f)
18-
require.Nil(t, err)
18+
if err != nil {
19+
t.Fatal("expected load err to be nil, was", err)
20+
}
1921
err = <-a.Play()
20-
require.Nil(t, err)
22+
if err != nil {
23+
t.Fatal("expected play err to be nil, was", err)
24+
}
2125
time.Sleep(4 * time.Second)
2226
// In addition to the error tests here, this should play noise
2327
}

0 commit comments

Comments
 (0)