ITestID not string
This commit is contained in:
parent
76489c2e04
commit
27111da6be
2
extern/filecoin-ffi
vendored
2
extern/filecoin-ffi
vendored
@ -1 +1 @@
|
||||
Subproject commit de34caff946d598edb299566d951b44b9b7f7dd4
|
||||
Subproject commit a458f638e3c8603c9b5a9ed9847c3af4597e46d4
|
@ -18,7 +18,6 @@ func withSetup(t *testing.T, f func(*kit.TestMiner)) {
|
||||
kit.MockProofs(),
|
||||
)
|
||||
|
||||
defer miner.BaseAPI.(*impl.StorageMinerAPI).ClusterDB.ITestDeleteAll()
|
||||
f(miner)
|
||||
}
|
||||
|
||||
|
@ -55,6 +55,7 @@ import (
|
||||
lotusminer "github.com/filecoin-project/lotus/miner"
|
||||
"github.com/filecoin-project/lotus/node"
|
||||
"github.com/filecoin-project/lotus/node/config"
|
||||
"github.com/filecoin-project/lotus/node/impl"
|
||||
"github.com/filecoin-project/lotus/node/modules"
|
||||
"github.com/filecoin-project/lotus/node/modules/dtypes"
|
||||
testing2 "github.com/filecoin-project/lotus/node/modules/testing"
|
||||
@ -773,6 +774,9 @@ func (n *Ensemble) Start() *Ensemble {
|
||||
require.NoError(n.t, err)
|
||||
|
||||
n.t.Cleanup(func() { _ = stop(context.Background()) })
|
||||
n.t.Cleanup(func() {
|
||||
m.StorageMiner.(*impl.StorageMinerAPI).ClusterDB.ITestDeleteAll()
|
||||
})
|
||||
|
||||
m.BaseAPI = m.StorageMiner
|
||||
|
||||
|
@ -233,7 +233,7 @@ func ConfigStorageMiner(c interface{}) Option {
|
||||
Override(new(config.ProvingConfig), cfg.Proving),
|
||||
Override(new(*ctladdr.AddressSelector), modules.AddressSelector(&cfg.Addresses)),
|
||||
Override(new(*clusterdb.DB), clusterdb.NewFromConfigWithITestID(cfg.ClusterDB)),
|
||||
Override(new(clusterdb.ITestID), ""),
|
||||
Override(new(clusterdb.ITestID), clusterdb.ITestID("")),
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user