Skip to content

Commit

Permalink
additional error checks
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Sep 23, 2024
1 parent 1a9d2c5 commit 2e75152
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion assigner/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ func TestAssignOnAnnounce(t *testing.T) {
require.NoError(t, err)
indexerID := stiCfg.Identity.PeerID
stiCfg.Indexer.FreezeAtPercent = 99.0
stiCfg.Save(stiCfgPath)
err = stiCfg.Save(stiCfgPath)
require.NoError(t, err)
t.Log("Initialized indexer", indexerID)

indexerReady := testcmd.NewStdoutWatcher(indexerReadyMatch)
Expand Down
6 changes: 4 additions & 2 deletions e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ func testEndToEndWithReferenceProvider(t *testing.T, publisherProto string) {
},
}
rdMirrorDir := rnr.Dir
cfg.Save(stiCfgPath)
err = cfg.Save(stiCfgPath)
require.NoError(t, err)

// start provider
providerReady := testcmd.NewStderrWatcher(providerReadyMatch)
Expand Down Expand Up @@ -264,7 +265,8 @@ func testEndToEndWithReferenceProvider(t *testing.T, publisherProto string) {
},
},
}
cfg.Save(sti2CfgPath)
err = cfg.Save(sti2CfgPath)
require.NoError(t, err)
wrMirrorDir := rnr.Dir

indexerReady2 := testcmd.NewStdoutWatcher(indexerReadyMatch)
Expand Down

0 comments on commit 2e75152

Please sign in to comment.