Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Jul 23, 2024
1 parent 46cc5b7 commit 707b283
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
14 changes: 7 additions & 7 deletions oracle/pkg/updater/updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down Expand Up @@ -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),
}
Expand Down Expand Up @@ -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),
}
Expand Down Expand Up @@ -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),
}
Expand Down Expand Up @@ -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),
}
Expand Down

0 comments on commit 707b283

Please sign in to comment.