Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Add shutdown to storage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonastheis committed Dec 5, 2023
1 parent 8b9d1f8 commit 8829fea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func TestStorage_PruneBySize(t *testing.T) {

func TestStorage_RestoreFromDisk(t *testing.T) {
tf := NewTestFramework(t, t.TempDir(), storage.WithPruningDelay(1))
defer tf.Shutdown()

totalEpochs := 9
tf.GeneratePermanentData(5 * MB)
Expand Down Expand Up @@ -213,6 +214,7 @@ func TestStorage_RestoreFromDisk(t *testing.T) {

func TestStorage_CopyFromForkedStorageEmpty(t *testing.T) {
tf1 := NewTestFramework(t, t.TempDir())
defer tf1.Shutdown()

totalEpochs := 14
// Generate data in the old storage (source). It contains data since the genesis and one epoch after the fork.
Expand Down

0 comments on commit 8829fea

Please sign in to comment.