From 707b28366c6e1310a69037c8f23e0483a452c244 Mon Sep 17 00:00:00 2001 From: Shawn <44221603+shaspitz@users.noreply.github.com> Date: Tue, 23 Jul 2024 11:56:16 -0700 Subject: [PATCH] fix: tests --- go.work.sum | 1 + oracle/pkg/updater/updater_test.go | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/go.work.sum b/go.work.sum index 5a6bf6894..88012308c 100644 --- a/go.work.sum +++ b/go.work.sum @@ -637,6 +637,7 @@ github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06 h1:KkH3I3sJuOLP github.com/Shopify/goreferrer v0.0.0-20220729165902-8cddb4f5de06/go.mod h1:7erjKLwalezA0k99cWs5L11HWOAPNjdUZ6RxH1BXbbM= github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d h1:UrqY+r/OJnIp5u0s1SbQ8dVfLCZJsnvazdBP5hS4iRs= github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ= +github.com/StackExchange/wmi v1.2.1/go.mod h1:rcmrprowKIVzvc+NUiLncP2uuArMWLCbu9SBzvHz7e8= github.com/aclements/go-gg v0.0.0-20170118225347-6dbb4e4fefb0 h1:E5Dzlk3akC+T2Zj1LBHgfPK1y8YWgLDnNDRmG+tpSKw= github.com/aclements/go-gg v0.0.0-20170118225347-6dbb4e4fefb0/go.mod h1:55qNq4vcpkIuHowELi5C8e+1yUHtoLoOUR9QU5j7Tes= github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794 h1:xlwdaKcTNVW4PtpQb8aKA4Pjy0CdJHEqvFbAnvR5m2g= diff --git a/oracle/pkg/updater/updater_test.go b/oracle/pkg/updater/updater_test.go index fcc030d9f..3b1183e52 100644 --- a/oracle/pkg/updater/updater_test.go +++ b/oracle/pkg/updater/updater_test.go @@ -198,7 +198,7 @@ func TestUpdater(t *testing.T) { l1Client := &testEVMClient{ blocks: map[int64]*types.Block{ - 5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), + 5: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), }, receipts: make(map[string]*types.Receipt), } @@ -462,7 +462,7 @@ func TestUpdaterRevertedTxns(t *testing.T) { l1Client := &testEVMClient{ blocks: map[int64]*types.Block{ - 5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), + 5: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), }, receipts: make(map[string]*types.Receipt), } @@ -733,7 +733,7 @@ func TestUpdaterRevertedTxnsWithRevertingHashes(t *testing.T) { l1Client := &testEVMClient{ blocks: map[int64]*types.Block{ - 5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), + 5: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), }, receipts: make(map[string]*types.Receipt), } @@ -956,7 +956,7 @@ func TestUpdaterBundlesFailure(t *testing.T) { l1Client := &testEVMClient{ blocks: map[int64]*types.Block{ - 5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), + 5: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), }, receipts: make(map[string]*types.Receipt), } @@ -1160,9 +1160,9 @@ func TestUpdaterIgnoreCommitments(t *testing.T) { l1Client := &testEVMClient{ blocks: map[int64]*types.Block{ - 5: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), - 8: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), - 10: types.NewBlock(&types.Header{}, txns, nil, nil, NewHasher()), + 5: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), + 8: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), + 10: types.NewBlock(&types.Header{}, &types.Body{}, []*types.Receipt{}, &testHasher{}), }, receipts: make(map[string]*types.Receipt), }