Skip to content

Commit

Permalink
Update cmd/query/app/server_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
  • Loading branch information
albertteoh and yurishkuro authored Sep 18, 2020
1 parent 32e5ab6 commit 4af8db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/query/app/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ func TestServerBadHostPort(t *testing.T) {
func TestServerInUseHostPort(t *testing.T) {
const availableHostPort = "127.0.0.1:0"
conn, err := net.Listen("tcp", availableHostPort)
defer func() { conn.Close() }()
assert.NoError(t, err)
require.NoError(t, err)
defer func() { require.NoError(t, conn.Close()) }()

testCases := []struct {
name string
Expand Down

0 comments on commit 4af8db0

Please sign in to comment.