Skip to content

Commit

Permalink
ipfs: remove fatal in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Mar 20, 2024
1 parent 11fdf17 commit 48fa245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipfs/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestDownload(t *testing.T) {

ds, err := levelds.NewDatastore(filepath.Join(t.TempDir(), "fsdds.leveldb"), nil)
if err != nil {
log.Fatal("failed to open leveldb datastore", zap.Error(err))
t.Fatal("failed to open leveldb datastore", zap.Error(err))
}
defer ds.Close()

Expand Down Expand Up @@ -195,7 +195,7 @@ func TestDownload2(t *testing.T) {

ds, err := levelds.NewDatastore(filepath.Join(t.TempDir(), "fsdds.leveldb"), nil)
if err != nil {
log.Fatal("failed to open leveldb datastore", zap.Error(err))
t.Fatal("failed to open leveldb datastore", zap.Error(err))
}
defer ds.Close()

Expand Down

0 comments on commit 48fa245

Please sign in to comment.