Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
radulucut committed Oct 31, 2024
1 parent 6539f76 commit 2dd8d2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/ping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ func Test_Execute_Ping_Infinite(t *testing.T) {
Limit: 1,
}
_storage := createDefaultStorage(utilsMock)
defer _storage.Remove()
t.Cleanup(func() {
_storage.Remove()
})
root := NewRoot(printer, ctx, viewerMock, utilsMock, gbMock, nil, _storage)
os.Args = []string{"globalping", "ping", "jsdelivr.com", "--infinite", "from", "Berlin"}

Expand Down

0 comments on commit 2dd8d2f

Please sign in to comment.