Skip to content

Commit

Permalink
enable test properly
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Jun 27, 2024
1 parent 8f62e7d commit 4b13167
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,17 @@ func TestStore_Append_stableHeadWhenGaps(t *testing.T) {
t.Log("head", head.Height(), head.Hash())
assert.Equal(t, head.Hash(), wantHead.Hash())
}
// {
// err := store.Append(ctx, missedChunk...)
// require.NoError(t, err)
// // wait for batch to be written.
// time.Sleep(100 * time.Millisecond)
// // after appending missing headers we're on the latest header.
// head, err := store.Head(ctx)
// require.NoError(t, err)
// assert.Equal(t, head.Hash(), latestHead.Hash())
// }
{
err := store.Append(ctx, missedChunk...)
require.NoError(t, err)
// wait for batch to be written.
time.Sleep(100 * time.Millisecond)

// after appending missing headers we're on the latest header.
head, err := store.Head(ctx)
require.NoError(t, err)
assert.Equal(t, head.Hash(), latestHead.Hash())
}
}

// TestStore_GetRange tests possible combinations of requests and ensures that
Expand Down

0 comments on commit 4b13167

Please sign in to comment.