Refactor tests
This commit is contained in:
@@ -19,7 +19,7 @@ func MockZabbixClient(dsInfo *backend.DataSourceInstanceSettings, body string, s
|
||||
return client, nil
|
||||
}
|
||||
|
||||
func MockZabbixAPI(client *Zabbix, body string, statusCode int) (*Zabbix, error) {
|
||||
func MockZabbixClientResponse(client *Zabbix, body string, statusCode int) (*Zabbix, error) {
|
||||
zabbixAPI, err := zabbixapi.MockZabbixAPI(body, statusCode)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user