aboutsummaryrefslogtreecommitdiff
path: root/plugin/pkg/dnsutil/join_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/pkg/dnsutil/join_test.go')
-rw-r--r--plugin/pkg/dnsutil/join_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/pkg/dnsutil/join_test.go b/plugin/pkg/dnsutil/join_test.go
index 26eeb5897..1a50a3c99 100644
--- a/plugin/pkg/dnsutil/join_test.go
+++ b/plugin/pkg/dnsutil/join_test.go
@@ -9,11 +9,12 @@ func TestJoin(t *testing.T) {
}{
{[]string{"bla", "bliep", "example", "org"}, "bla.bliep.example.org."},
{[]string{"example", "."}, "example."},
+ {[]string{"example", "org."}, "example.org."}, // technically we should not be called like this.
{[]string{"."}, "."},
}
for i, tc := range tests {
- if x := Join(tc.in); x != tc.out {
+ if x := Join(tc.in...); x != tc.out {
t.Errorf("Test %d, expected %s, got %s", i, tc.out, x)
}
}