Skip to content

Commit

Permalink
w3vm: speed up vm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Feb 26, 2024
1 parent 95aa0c2 commit f89557e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions w3vm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func TestVMApply(t *testing.T) {
if diff := cmp.Diff(test.WantReceipt, gotReceipt,
internal.EquateErrors(),
cmpopts.IgnoreUnexported(w3vm.Receipt{}),
cmpopts.EquateComparable(common.Address{}, common.Hash{}),
); diff != "" {
t.Fatalf("(-want +got)\n%s", diff)
}
Expand Down Expand Up @@ -250,6 +251,7 @@ func TestVMCall(t *testing.T) {
if diff := cmp.Diff(test.WantReceipt, gotReceipt,
internal.EquateErrors(),
cmpopts.IgnoreUnexported(w3vm.Receipt{}),
cmpopts.EquateComparable(common.Address{}, common.Hash{}),
); diff != "" {
t.Fatalf("(-want +got)\n%s", diff)
}
Expand Down Expand Up @@ -439,6 +441,7 @@ func TestVMApply_Integration(t *testing.T) {
cmpopts.IgnoreUnexported(w3vm.Receipt{}),
cmpopts.IgnoreFields(w3vm.Receipt{}, "GasRefund", "GasLimit", "Output"),
cmpopts.IgnoreFields(types.Log{}, "BlockHash", "BlockNumber", "TxHash", "TxIndex", "Index"),
cmpopts.EquateComparable(common.Address{}, common.Hash{}),
); diff != "" {
t.Fatalf("(-want +got)\n%s", diff)
}
Expand Down

0 comments on commit f89557e

Please sign in to comment.