MCPcopy Create free account
hub / github.com/DOSNetwork/core / TestOnChainReadConfig

Function TestOnChainReadConfig

configuration/config_test.go:28–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestOnChainReadConfig(t *testing.T) {
29 os.Setenv("CONFIGPATH", "..")
30 os.Setenv("CHAINNODE", "rinkebyPrivateNode")
31 config := OnChainConfig{}
32 config.LoadConfig()
33
34 actualResult := config.GetChainConfig().RemoteNodeType
35 expectedResult := "rinkebyPrivateNode"
36
37 require.Equal(t, expectedResult, actualResult)
38}
39
40func TestOnChainUpdate(t *testing.T) {
41 config := OnChainConfig{}

Callers

nothing calls this directly

Calls 2

LoadConfigMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected