refactor CHORUS
This commit is contained in:
@@ -241,13 +241,13 @@ func TestConfig_GetBootstrapPeers(t *testing.T) {
|
||||
|
||||
func TestConfigWithEnvironmentOverrides(t *testing.T) {
|
||||
// Set environment variables
|
||||
os.Setenv("BZZZ_AGENT_ID", "env-test-agent")
|
||||
os.Setenv("BZZZ_P2P_PORT", "9999")
|
||||
os.Setenv("BZZZ_ENCRYPTION_ENABLED", "false")
|
||||
os.Setenv("CHORUS_AGENT_ID", "env-test-agent")
|
||||
os.Setenv("CHORUS_P2P_PORT", "9999")
|
||||
os.Setenv("CHORUS_ENCRYPTION_ENABLED", "false")
|
||||
defer func() {
|
||||
os.Unsetenv("BZZZ_AGENT_ID")
|
||||
os.Unsetenv("BZZZ_P2P_PORT")
|
||||
os.Unsetenv("BZZZ_ENCRYPTION_ENABLED")
|
||||
os.Unsetenv("CHORUS_AGENT_ID")
|
||||
os.Unsetenv("CHORUS_P2P_PORT")
|
||||
os.Unsetenv("CHORUS_ENCRYPTION_ENABLED")
|
||||
}()
|
||||
|
||||
cfg := DefaultConfig()
|
||||
|
||||
Reference in New Issue
Block a user