Skip to content

Commit 29bf88b

Browse files
authored
adjust test to check for non-tls option failure (#472)
Signed-off-by: yaron2 <[email protected]>
1 parent 5eecffa commit 29bf88b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/client_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ func TestShutdown(t *testing.T) {
134134
}
135135

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

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

0 commit comments

Comments
 (0)