Skip to content

Commit

Permalink
fix ci flow
Browse files Browse the repository at this point in the history
  • Loading branch information
millken committed May 30, 2023
1 parent 203d6a1 commit e6152e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/itx/heartbeat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ func TestNewHeartbeatHandler(t *testing.T) {
testutil.CleanupPath(triePath)
indexPath, err := testutil.PathOfTempFile("index.db")
require.NoError(err)
sgdIndexPath, err := testutil.PathOfTempFile("sgdindex.db")
require.NoError(err)
defer func() {
testutil.CleanupPath(dbPath)
testutil.CleanupPath(triePath)
testutil.CleanupPath(indexPath)
testutil.CleanupPath(sgdIndexPath)
}()
cfg := config.Default
cfg.API.GRPCPort = testutil.RandomPort()
Expand All @@ -40,6 +43,7 @@ func TestNewHeartbeatHandler(t *testing.T) {
cfg.Chain.ChainDBPath = dbPath
cfg.Chain.TrieDBPath = triePath
cfg.Chain.ContractStakingIndexDBPath = indexPath
cfg.Chain.SGDIndexDBPath = sgdIndexPath
cfg.Chain.TrieDBPatchFile = ""
s, err := NewServer(cfg)
cfg.Consensus.Scheme = config.RollDPoSScheme
Expand Down

0 comments on commit e6152e9

Please sign in to comment.