Spartan0nix / zabbix-go-sdk

MIT License
0 stars 0 forks source link

Fix test checking #42

Closed Spartan0nix closed 1 year ago

Spartan0nix commented 1 year ago

For example : https://github.com/Spartan0nix/zabbix-go-sdk/blob/5c068ed5d89d334d36e0e600ba42121e27a32758/host_test.go#L55

Instead of

if h == nil {

Use :

if h == nil || len(h.HostIds) == 0 {

Need to be updated on all tests.