Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
mgyucht committed May 17, 2024
1 parent d8939e1 commit ceac218
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions useragent/user_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ func TestFromContext_Custom(t *testing.T) {
func TestDefaultsAreValid(t *testing.T) {
WithProduct(productName, productVersion)
}

func TestMultiplePartners(t *testing.T) {
WithPartner("partner1")
WithPartner("partner2")
userAgent := FromContext(context.Background())
assert.Contains(t, userAgent, "partner/partner1")
assert.Contains(t, userAgent, "partner/partner2")
}

0 comments on commit ceac218

Please sign in to comment.