Skip to content

Commit

Permalink
Add new parameters to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Jun 12, 2024
1 parent 76e8e83 commit c13996f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions plugins/inputs/mqtt_consumer/mqtt_consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,10 @@ func TestIntegration(t *testing.T) {
plugin := &MQTTConsumer{
Servers: []string{url},
Topics: []string{topic},
ConnectionTimeout: config.Duration(5 * time.Second),
MaxUndeliveredMessages: defaultMaxUndeliveredMessages,
ConnectionTimeout: config.Duration(5 * time.Second),
KeepAliveInterval: config.Duration(1 * time.Second),
PingTimeout: config.Duration(100 * time.Millisecond),
Log: testutil.Logger{Name: "mqtt-integration-test"},
clientFactory: factory,
}
Expand Down Expand Up @@ -706,8 +708,10 @@ func TestStartupErrorBehaviorErrorIntegration(t *testing.T) {
plugin := &MQTTConsumer{
Servers: []string{url},
Topics: []string{topic},
ConnectionTimeout: config.Duration(5 * time.Second),
MaxUndeliveredMessages: defaultMaxUndeliveredMessages,
ConnectionTimeout: config.Duration(5 * time.Second),
KeepAliveInterval: config.Duration(1 * time.Second),
PingTimeout: config.Duration(100 * time.Millisecond),
Log: testutil.Logger{Name: "mqtt-integration-test"},
clientFactory: factory,
}
Expand Down Expand Up @@ -763,8 +767,10 @@ func TestStartupErrorBehaviorIgnoreIntegration(t *testing.T) {
plugin := &MQTTConsumer{
Servers: []string{url},
Topics: []string{topic},
ConnectionTimeout: config.Duration(5 * time.Second),
MaxUndeliveredMessages: defaultMaxUndeliveredMessages,
ConnectionTimeout: config.Duration(5 * time.Second),
KeepAliveInterval: config.Duration(1 * time.Second),
PingTimeout: config.Duration(100 * time.Millisecond),
Log: testutil.Logger{Name: "mqtt-integration-test"},
clientFactory: factory,
}
Expand Down Expand Up @@ -826,8 +832,10 @@ func TestStartupErrorBehaviorRetryIntegration(t *testing.T) {
plugin := &MQTTConsumer{
Servers: []string{url},
Topics: []string{topic},
ConnectionTimeout: config.Duration(5 * time.Second),
MaxUndeliveredMessages: defaultMaxUndeliveredMessages,
ConnectionTimeout: config.Duration(5 * time.Second),
KeepAliveInterval: config.Duration(1 * time.Second),
PingTimeout: config.Duration(100 * time.Millisecond),
Log: testutil.Logger{Name: "mqtt-integration-test"},
clientFactory: factory,
}
Expand Down

0 comments on commit c13996f

Please sign in to comment.