Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #601 from pohly/tls-error-codes
Browse files Browse the repository at this point in the history
test: relax TLS error check even further
  • Loading branch information
avalluri authored Apr 20, 2020
2 parents be332ea + fb0259e commit 2c2adb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registryserver/registryserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ var _ = Describe("pmem registry", func() {
)

// gRPC returns all kinds of errors when TLS fails.
badConnectionRE := "authentication handshake failed: remote error: tls: bad certificate|all SubConns are in TransientFailure|rpc error: code = Unavailable desc = connection closed|rpc error: code = Unavailable desc = tls: use of closed connection|transport: failed to write client preface: write .*: write: broken pipe"
badConnectionRE := "authentication handshake failed: remote error: tls: bad certificate|all SubConns are in TransientFailure|rpc error: code = Unavailable"

// This covers different scenarios for connections to the registry.
cases := []struct {
Expand Down

0 comments on commit 2c2adb5

Please sign in to comment.