From e4eb68b66e583b822b64600a6008d36ad2fac700 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Fri, 3 Sep 2021 13:55:19 -0400 Subject: [PATCH] Add test Signed-off-by: Yuri Shkuro --- cmd/flags/flags_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/flags/flags_test.go b/cmd/flags/flags_test.go index 07563a21535..6a6350b4e37 100644 --- a/cmd/flags/flags_test.go +++ b/cmd/flags/flags_test.go @@ -50,3 +50,12 @@ func TestParseJaegerTags(t *testing.T) { assert.Equal(t, expectedTags, ParseJaegerTags(jaegerTags)) } + +func TestParseJaegerTagsPanic(t *testing.T) { + assert.PanicsWithValue(t, + "invalid Jaeger tag pair \"no-equals-sign\", expected key=value", + func() { + ParseJaegerTags("no-equals-sign") + }, + ) +}