Skip to content

Commit

Permalink
Update plugins/outputs/zabbix/autoregister_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
  • Loading branch information
adrianlzt and Hipska authored Nov 30, 2023
1 parent 7672a87 commit 1cb1d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/zabbix/autoregister_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestZabbixAutoregisterPush(t *testing.T) {

// Test that nothing is sent if autoregister is disabled.
z.autoregisterPush()
require.Equal(t, len(z.autoregisterLastSend), 0)
require.Len(t, z.autoregisterLastSend, 0)

// Test that nothing is sent if autoregister is enabled but no host is added.
z.Autoregister = "autoregister"
Expand Down

0 comments on commit 1cb1d6f

Please sign in to comment.