Skip to content

Commit 1362921

Browse files
authored
fix: require empty condition
1 parent 9101d61 commit 1362921

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

channels/channels_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"time"
66

77
"github.com/stretchr/testify/assert"
8+
"github.com/stretchr/testify/require"
89
)
910

1011
func TestJoin(t *testing.T) {
@@ -38,5 +39,5 @@ func TestDrain(t *testing.T) {
3839

3940
Drain(in)
4041

41-
assert.Len(t, in, 0)
42+
require.Empty(t, in, 0)
4243
}

0 commit comments

Comments
 (0)