From cd3c2682078dd9c0c9bf0bec3395251b17b7876a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 25 Feb 2024 10:02:03 -0500 Subject: [PATCH] fix unit tests --- irc/config_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/irc/config_test.go b/irc/config_test.go index 3d55865be..05466daaa 100644 --- a/irc/config_test.go +++ b/irc/config_test.go @@ -28,7 +28,7 @@ func TestEnvironmentOverrides(t *testing.T) { `ORAGONO__SERVER__IP_CLOAKING={"enabled": true, "enabled-for-always-on": true, "netname": "irc", "cidr-len-ipv4": 32, "cidr-len-ipv6": 64, "num-bits": 64}`, } for _, envPair := range env { - _, err := mungeFromEnvironment(&config, envPair) + _, _, err := mungeFromEnvironment(&config, envPair) if err != nil { t.Errorf("couldn't apply override `%s`: %v", envPair, err) } @@ -93,7 +93,7 @@ func TestEnvironmentOverrideErrors(t *testing.T) { } for _, env := range invalidEnvs { - success, err := mungeFromEnvironment(&config, env) + success, _, err := mungeFromEnvironment(&config, env) if err == nil || success { t.Errorf("accepted invalid env override `%s`", env) }