core/vm: fix test error message (#35134)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

This commit is contained in:
cui 2026-06-13 01:38:45 +08:00 committed by GitHub
parent 9059157eba
commit 116314baf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -724,7 +724,7 @@ func TestRandom(t *testing.T) {
)
opRandom(&pc, evm, &ScopeContext{nil, stack, nil})
if have, want := stack.len(), 1; have != want {
t.Errorf("test '%v': want %d item(s) on stack, have %d: ", tt.name, have, want)
t.Errorf("test '%v': want %d item(s) on stack, have %d: ", tt.name, want, have)
}
actual := stack.pop()
expected, overflow := uint256.FromBig(new(big.Int).SetBytes(tt.random.Bytes()))