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") + }, + ) +}