mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
backends: go ci lint
This commit is contained in:
parent
010d880c9d
commit
3715e1b278
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
// 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))
|
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)
|
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))
|
t.Errorf("response from calling contract was expected to be 'hello world' instead received %v", string(res))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue