From 3715e1b278522d56ffb201a1e9969b92d5723881 Mon Sep 17 00:00:00 2001 From: ilan gitter Date: Sun, 27 Oct 2019 06:47:09 -0400 Subject: [PATCH] backends: go ci lint --- accounts/abi/bind/backends/simulated_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go index 3839918baaee..066b9fd83eac 100644 --- a/accounts/abi/bind/backends/simulated_test.go +++ b/accounts/abi/bind/backends/simulated_test.go @@ -811,7 +811,7 @@ func TestSimulatedBackend_PendingAndCallContract(t *testing.T) { } // while comparing against the byte array is more exact, also compare against the human readable string for readability - if bytes.Compare(res, expectedReturn) != 0 || !strings.Contains(string(res), "hello world") { + if !bytes.Equal(res, expectedReturn) || !strings.Contains(string(res), "hello world") { t.Errorf("response from calling contract was expected to be 'hello world' instead received %v", string(res)) } @@ -830,7 +830,7 @@ func TestSimulatedBackend_PendingAndCallContract(t *testing.T) { t.Errorf("result of contract call was empty: %v", res) } - if bytes.Compare(res, expectedReturn) != 0 || !strings.Contains(string(res), "hello world") { + if !bytes.Equal(res, expectedReturn) || !strings.Contains(string(res), "hello world") { t.Errorf("response from calling contract was expected to be 'hello world' instead received %v", string(res)) } }