Skip to content

Commit

Permalink
test(pruner): Fixing expected value in TestService
Browse files Browse the repository at this point in the history
  • Loading branch information
distractedm1nd committed Jan 8, 2024
1 parent b713435 commit 2ad9624
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pruner/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

// TODO @renaynay: tweak/document
var (
availWindow = AvailabilityWindow(time.Millisecond)
availWindow = AvailabilityWindow(time.Millisecond * 200)
blockTime = time.Millisecond * 100
gcCycle = time.Millisecond * 500
)
Expand Down Expand Up @@ -57,7 +57,8 @@ func TestService(t *testing.T) {
err = serv.Stop(ctx)
require.NoError(t, err)

t.Log(len(mp.deletedHeaderHashes)) // TODO @renaynay: expect something here
expected := time.Second/blockTime - time.Duration(availWindow)/blockTime
require.Len(t, mp.deletedHeaderHashes, int(expected))
}

func TestFindPruneableHeaders(t *testing.T) {
Expand Down

0 comments on commit 2ad9624

Please sign in to comment.