Skip to content

Commit

Permalink
Upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
mantzas committed Nov 16, 2024
1 parent b2f1677 commit 4c2c77f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion client/mqtt/publisher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func TestDefaultConfig(t *testing.T) {
assert.Equal(t, got.ClientID, tt.args.clientID)
assert.Equal(t, u, got.BrokerUrls[0])
assert.Equal(t, uint16(30), got.KeepAlive)
assert.Equal(t, 5*time.Second, got.ConnectRetryDelay)
assert.Equal(t, 1*time.Second, got.ConnectTimeout)
assert.NotNil(t, got.OnConnectionUp)
assert.NotNil(t, got.OnConnectError)
Expand Down
2 changes: 1 addition & 1 deletion component/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Test_messageWrapper(t *testing.T) {
assert.Equal(t, ctx, msgCtx)
assert.NotNil(t, consumerMessage)
assert.Equal(t, "topicone", consumerMessage.Topic)
assert.Equal(t, []byte(`{"key":"value"}`), consumerMessage.Value)
assert.JSONEq(t, `{"key":"value"}`, string(consumerMessage.Value))
}

func Test_NewBatch(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestSIGHUP(t *testing.T) {

err := WithSIGHUP(nil)(svc)
assert.Equal(t, errors.New("provided WithSIGHUP handler was nil"), err)
assert.Nil(t, nil, svc.sighupHandler)
assert.Nil(t, svc.sighupHandler)
})

t.Run("non empty value for sighup handler", func(t *testing.T) {
Expand Down

0 comments on commit 4c2c77f

Please sign in to comment.