Skip to content

Commit c3ee0e4

Browse files
committed
go vet
1 parent 26cfa8b commit c3ee0e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pump_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,12 @@ func TestPumpPostAndStop(test *testing.T) {
108108
test.Fatal("post")
109109
}
110110
pump.Output("t2", []byte("m2"))
111-
ctx, _ := context.WithTimeout(context.Background(), 0)
111+
ctx, qf := context.WithTimeout(context.Background(), 0)
112112
err = pump.Post(ctx, "t3", []byte("m3"))
113113
if err == nil {
114114
test.Fatal("try write")
115115
}
116+
qf()
116117

117118
pump.Stop()
118119

0 commit comments

Comments
 (0)