From 6f2024ea24a979489eb3a7d186c7d8dded3d213f Mon Sep 17 00:00:00 2001 From: Hiram Silvey <9485196+HiramSilvey@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:48:21 -0500 Subject: [PATCH] Add edge case test. --- internal/faults/common_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/faults/common_test.go b/internal/faults/common_test.go index bf4750fb9..17080826c 100644 --- a/internal/faults/common_test.go +++ b/internal/faults/common_test.go @@ -34,6 +34,11 @@ func TestGetCanonicalAddress(t *testing.T) { address: "foo.bar:12345/path", want: "foo.bar", }, + { + name: "unexpected trailing colon untouched", + address: "foo.bar:", + want: "foo.bar:", + }, { name: "external address without port untouched", address: "unix://foo",