Skip to content

Commit

Permalink
Make unit test pass with non-deterministic tls error
Browse files Browse the repository at this point in the history
Make unit test pass with non-deterministic tls error

Signed-off-by: David Enyeart <[email protected]>
  • Loading branch information
denyeart committed Apr 25, 2024
1 parent bb468ce commit 60853d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shim/internal/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,15 +681,15 @@ func TestTLSClientWithChaincodeServer(t *testing.T) {
clientCert: []byte(certPEM),
clientRootCert: []byte(rootPEM),
success: false,
errMsg: "rpc error: code = Unavailable desc = write tcp 127.0.0.1:[[:digit:]]{5}->127.0.0.1:[[:digit:]]{5}: write: broken pipe",
errMsg: "rpc error",
address: "127.0.0.1:0",
},
{
name: "No client cert",
issrv: true,
clientRootCert: []byte(rootPEM),
success: false,
errMsg: "rpc error: code = Unavailable desc = write tcp 127.0.0.1:[[:digit:]]{5}->127.0.0.1:[[:digit:]]{5}: write: broken pipe",
errMsg: "rpc error",
address: "127.0.0.1:0",
},
}
Expand Down

0 comments on commit 60853d5

Please sign in to comment.