Skip to content
Snippets Groups Projects
Commit c3ee74de authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix test

parent 7e7bf3fd
No related branches found
No related tags found
1 merge request!23Release
......@@ -39,7 +39,7 @@ func TestErrorStringToUserFriendlyMessage(t *testing.T) {
rpcPrefix := "rpc error: desc = "
rpcErr := expected + rpcPrefix + context.DeadlineExceeded.Error()
received = ErrorStringToUserFriendlyMessage(rpcErr)
if strings.Compare(UnrecognizedCode+expected, received) != 0 {
if strings.Compare(expected, received) != 0 {
t.Errorf("Rpc error parsed unxecpectedly with error "+
"\n\"%s\" "+
"\n\tExpected: %s"+
......@@ -50,7 +50,7 @@ func TestErrorStringToUserFriendlyMessage(t *testing.T) {
serverSideError := "Could not parse message! Please try again with a properly crafted message"
rpcErr = rpcPrefix + serverSideError
received = ErrorStringToUserFriendlyMessage(rpcErr)
if strings.Compare(UnrecognizedCode+serverSideError, received) != 0 {
if strings.Compare(serverSideError, received) != 0 {
t.Errorf("RPC error parsed unexpectedly with error "+
"\n\"%s\" "+
"\n\tExpected: %s"+
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment