Skip to content

Commit 99a80f7

Browse files
committed
test: improve coverage
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent b58b1d8 commit 99a80f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nsq/nsq_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func TestNSQShutdown(t *testing.T) {
6161
time.Sleep(1 * time.Second)
6262
q.Shutdown()
6363
// check shutdown once
64-
q.Shutdown()
64+
assert.Error(t, w.Shutdown())
65+
assert.Equal(t, queue.ErrQueueShutdown, w.Shutdown())
6566
q.Wait()
6667
}
6768

0 commit comments

Comments
 (0)