Skip to content

Commit

Permalink
feat: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nozik committed Apr 4, 2024
1 parent f5d1366 commit 2feda8b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,17 @@ func TestConfigs(t *testing.T) {
assert.Equal(t, c.Traces.Timeout, 5*time.Second)
},
},

// Query tests
{
name: "Test With Query",
opts: []GenericOption{
WithQuery(map[string][]string{"queryKey": {"queryVal"}}),
},
asserts: func(t *testing.T, c *Config, grpcOption bool) {
assert.Equal(t, map[string][]string{"queryKey": {"queryVal"}}, c.Traces.Query)
},
},
}

for _, tt := range tests {
Expand Down

0 comments on commit 2feda8b

Please sign in to comment.