(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func 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 | |
| 40 | func TestOnChainUpdate(t *testing.T) { |
| 41 | config := OnChainConfig{} |
nothing calls this directly
no test coverage detected