Skip to content

Commit

Permalink
backends: go ci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan gitter committed Oct 27, 2019
1 parent 010d880 commit 3715e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts/abi/bind/backends/simulated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand All @@ -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))
}
}

0 comments on commit 3715e1b

Please sign in to comment.