Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62a4971

Browse files
albertteohyurishkuro
authored and
albertteoh
committedSep 18, 2020
Update cmd/query/app/server_test.go
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Signed-off-by: albertteoh <albert.teoh@logz.io>
1 parent 32e5ab6 commit 62a4971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎cmd/query/app/server_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func TestServerBadHostPort(t *testing.T) {
7575
func TestServerInUseHostPort(t *testing.T) {
7676
const availableHostPort = "127.0.0.1:0"
7777
conn, err := net.Listen("tcp", availableHostPort)
78-
defer func() { conn.Close() }()
79-
assert.NoError(t, err)
78+
require.NoError(t, err)
79+
defer func() { require.NoError(t, conn.Close()) }()
8080

8181
testCases := []struct {
8282
name string

0 commit comments

Comments
 (0)
Please sign in to comment.