diff --git a/codex/p2p_test.go b/codex/p2p_test.go index 5dc9f53..44337fd 100644 --- a/codex/p2p_test.go +++ b/codex/p2p_test.go @@ -51,6 +51,7 @@ func TestConnectWithAddress(t *testing.T) { LogFormat: LogFormatNoColors, MetricsEnabled: false, DiscoveryPort: 8091, + Nat: "none", }) if err != nil { t.Fatalf("Failed to create codex2: %v", err) diff --git a/codex/testutil.go b/codex/testutil.go index f8ec8f7..5e92bcd 100644 --- a/codex/testutil.go +++ b/codex/testutil.go @@ -44,6 +44,10 @@ func newCodexNode(t *testing.T, opts ...Config) *CodexNode { config.DiscoveryPort = c.DiscoveryPort } + if c.Nat != "" { + config.Nat = c.Nat + } + if c.StorageQuota != 0 { config.StorageQuota = c.StorageQuota }