circleci try 21 use the test's config
This commit is contained in:
parent
15a8e79f13
commit
a22b7cf869
@ -231,9 +231,12 @@ func ConfigStorageMiner(c interface{}) Option {
|
|||||||
|
|
||||||
Override(new(config.SealerConfig), cfg.Storage),
|
Override(new(config.SealerConfig), cfg.Storage),
|
||||||
Override(new(config.ProvingConfig), cfg.Proving),
|
Override(new(config.ProvingConfig), cfg.Proving),
|
||||||
Override(new(*ctladdr.AddressSelector), modules.AddressSelector(&cfg.Addresses)),
|
Override(new(config.HarmonyDB), cfg.HarmonyDB),
|
||||||
Override(new(*harmonydb.DB), harmonydb.NewFromConfigWithITestID(cfg.HarmonyDB)),
|
|
||||||
Override(new(harmonydb.ITestID), harmonydb.ITestID("")),
|
Override(new(harmonydb.ITestID), harmonydb.ITestID("")),
|
||||||
|
Override(new(*ctladdr.AddressSelector), modules.AddressSelector(&cfg.Addresses)),
|
||||||
|
Override(new(*harmonydb.DB), func(cfg config.HarmonyDB, id harmonydb.ITestID) (*harmonydb.DB, error) {
|
||||||
|
return harmonydb.NewFromConfigWithITestID(cfg)(id)
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user