Skip to content

Commit

Permalink
refactor: fixed tests due to state length change to 1200
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 committed Aug 2, 2024
1 parent 80032f4 commit d599690
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func TestGetBufferedState(t *testing.T) {
stateBuffer: 5,
},

want: 1,
want: 0,
wantErr: false,
},
{
Expand All @@ -398,7 +398,7 @@ func TestGetBufferedState(t *testing.T) {
buffer: 2,
stateBuffer: 5,
},
want: -1,
want: 4,
wantErr: false,
},
{
Expand All @@ -411,7 +411,7 @@ func TestGetBufferedState(t *testing.T) {
stateBuffer: 5,
},

want: -1,
want: 3,
wantErr: false,
},
{
Expand Down Expand Up @@ -959,7 +959,7 @@ func TestGetRemainingTimeOfCurrentState(t *testing.T) {
block: &types.Header{},
stateBuffer: 5,
},
want: 55,
want: 235,
wantErr: false,
},
{
Expand Down Expand Up @@ -1086,7 +1086,7 @@ func TestEstimateBlockNumberAtEpochBeginning(t *testing.T) {
block: &types.Header{Time: 1, Number: big.NewInt(1)},
previousBlock: &types.Header{Time: 20, Number: big.NewInt(1)},
},
want: big.NewInt(-59),
want: big.NewInt(-239),
wantErr: false,
},
{
Expand Down

0 comments on commit d599690

Please sign in to comment.