test fix, review rearrange
This commit is contained in:
parent
2f36f0ec0a
commit
c99fa24ef4
@ -10,6 +10,8 @@ import (
|
|||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"github.com/filecoin-project/lotus/node/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDefaultFullNodeRoundtrip(t *testing.T) {
|
func TestDefaultFullNodeRoundtrip(t *testing.T) {
|
||||||
@ -71,6 +73,10 @@ func TestDefaultMinerRoundtrip(t *testing.T) {
|
|||||||
|
|
||||||
fmt.Println(s)
|
fmt.Println(s)
|
||||||
|
|
||||||
|
// Differs between test envs
|
||||||
|
c.HarmonyDB = config.HarmonyDB{}
|
||||||
|
c2.(*StorageMiner).HarmonyDB = config.HarmonyDB{}
|
||||||
|
|
||||||
fmt.Println(c)
|
fmt.Println(c)
|
||||||
fmt.Println(c2)
|
fmt.Println(c2)
|
||||||
require.True(t, reflect.DeepEqual(c, c2))
|
require.True(t, reflect.DeepEqual(c, c2))
|
||||||
|
@ -67,14 +67,18 @@ type StorageMiner struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type LotusProviderConfig struct {
|
type LotusProviderConfig struct {
|
||||||
EnableWindowPost bool
|
Subsystems ProviderSubsystemsConfig
|
||||||
EnableWinningPost bool
|
|
||||||
|
|
||||||
Fees LotusProviderFees
|
Fees LotusProviderFees
|
||||||
Addresses LotusProviderAddresses
|
Addresses LotusProviderAddresses
|
||||||
Proving ProvingConfig
|
Proving ProvingConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ProviderSubsystemsConfig struct {
|
||||||
|
EnableWindowPost bool
|
||||||
|
EnableWinningPost bool
|
||||||
|
}
|
||||||
|
|
||||||
type DAGStoreConfig struct {
|
type DAGStoreConfig struct {
|
||||||
// Path to the dagstore root directory. This directory contains three
|
// Path to the dagstore root directory. This directory contains three
|
||||||
// subdirectories, which can be symlinked to alternative locations if
|
// subdirectories, which can be symlinked to alternative locations if
|
||||||
|
Loading…
Reference in New Issue
Block a user