Skip to content

Commit

Permalink
Add edge case test.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiramSilvey committed Dec 11, 2024
1 parent 2e2882b commit 6f2024e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/faults/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6f2024e

Please sign in to comment.