Skip to content

Commit

Permalink
adjust test to check for non-tls option failure (#472)
Browse files Browse the repository at this point in the history
Signed-off-by: yaron2 <[email protected]>
  • Loading branch information
yaron2 authored Nov 2, 2023
1 parent 5eecffa commit 29bf88b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ func TestShutdown(t *testing.T) {
}

func TestWithTLS(t *testing.T) {
c, err := NewClientWithAddressContext(context.Background(), "127.0.0.1", WithTLS())
require.NoError(t, err)
defer c.Close()
_, err := NewClientWithAddressContext(context.Background(), "127.0.0.1", WithTLS())
require.Errorf(t, err, "error creating connection to '127.0.0.1': context deadline exceeded")
}

func getTestClient(ctx context.Context) (client Client, closer func()) {
Expand Down

0 comments on commit 29bf88b

Please sign in to comment.