refactor CHORUS

This commit is contained in:
anthonyrawlins
2025-09-06 14:47:41 +10:00
parent 9bdcbe0447
commit b6634e4c1b
16 changed files with 225 additions and 225 deletions

View File

@@ -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()