Skip to content

Commit

Permalink
Verify Close() called on shutdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
seizethedave committed Jan 17, 2025
1 parent eeeb3ac commit baf97cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/blockbuilder/blockbuilder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ func TestPullMode(t *testing.T) {
require.NoError(t, services.StartAndAwaitRunning(ctx, bb))
t.Cleanup(func() {
require.NoError(t, services.StopAndAwaitTerminated(ctx, bb))
require.Equal(t, 1, scheduler.closeCallCount())
})

require.Eventually(t, func() bool {
Expand Down

0 comments on commit baf97cf

Please sign in to comment.