From 60853d5a455a2e7cdaf81200290c68e7ca63184d Mon Sep 17 00:00:00 2001 From: David Enyeart Date: Thu, 25 Apr 2024 12:37:33 -0400 Subject: [PATCH] Make unit test pass with non-deterministic tls error Make unit test pass with non-deterministic tls error Signed-off-by: David Enyeart --- shim/internal/config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shim/internal/config_test.go b/shim/internal/config_test.go index d9ece87..4cfb7ea 100644 --- a/shim/internal/config_test.go +++ b/shim/internal/config_test.go @@ -681,7 +681,7 @@ 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", }, { @@ -689,7 +689,7 @@ func TestTLSClientWithChaincodeServer(t *testing.T) { 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", }, }