Skip to content

Commit

Permalink
test: add spec for multi conn mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jan 24, 2024
1 parent a4ac6ed commit 7f7ddb9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions client_telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ func TestClient_readSubscriptionMeta(t *testing.T) {
}

func TestClient_clientInfo(t *testing.T) {
c := &Client{options: &clientOptions{}}
ci := c.clientInfo()
assert.Equal(t, []MQTTClientInfo(nil), ci)
t.Run("single connection mode", func(t *testing.T) {
c := &Client{options: &clientOptions{}}
ci := c.clientInfo()
assert.Equal(t, []MQTTClientInfo(nil), ci)
})

t.Run("multi connection mode", func(t *testing.T) {
c := &Client{options: &clientOptions{multiConnectionMode: true}}
ci := c.clientInfo()
assert.Equal(t, []MQTTClientInfo(nil), ci)
})
}

0 comments on commit 7f7ddb9

Please sign in to comment.