Skip to content

Commit

Permalink
Use t.TempDir()
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Jul 20, 2023
1 parent 0aca056 commit 3cefb86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,10 @@ func TestSpacemeshApp_NodeService(t *testing.T) {
// Use a unique port
port := 1240

var err error
app := New(WithLog(logger))
app.Config = getTestDefaultConfig(t)
app.Config.SMESHING.CoinbaseAccount = types.GenerateAddress([]byte{1}).String()
app.Config.SMESHING.Opts.DataDir, err = os.MkdirTemp("", "sm-app-test-post-datadir")
require.NoError(t, err)
app.Config.SMESHING.Opts.DataDir = t.TempDir()

clock, err := timesync.NewClock(
timesync.WithLayerDuration(1*time.Second),
Expand Down

0 comments on commit 3cefb86

Please sign in to comment.