From 78a9718516706c783ca7345b2387ecdb84499cad Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz <43588696+MuneebAijaz@users.noreply.github.com> Date: Fri, 13 Dec 2024 21:24:45 +0500 Subject: [PATCH] Fix grafana synthetic tests (#622) --- pkg/monitors/grafana/grafana-monitor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/monitors/grafana/grafana-monitor_test.go b/pkg/monitors/grafana/grafana-monitor_test.go index bf0dd9a3..669d4f6a 100644 --- a/pkg/monitors/grafana/grafana-monitor_test.go +++ b/pkg/monitors/grafana/grafana-monitor_test.go @@ -60,7 +60,7 @@ func TestAddMonitorWithCorrectValues(t *testing.T) { monitorConfig, _ := monitor.Config.(*endpointmonitorv1alpha1.GrafanaConfig) providerConfig, _ := m.Config.(*endpointmonitorv1alpha1.GrafanaConfig) - if monitor.Name != m.Name || monitor.URL != m.URL || monitorConfig.Frequency != providerConfig.Frequency || reflect.DeepEqual(monitorConfig.Probes, providerConfig.Probes) || monitorConfig.AlertSensitivity != providerConfig.AlertSensitivity { + if monitor.Name != m.Name || monitor.URL != m.URL || monitorConfig.Frequency != providerConfig.Frequency || !reflect.DeepEqual(monitorConfig.Probes, providerConfig.Probes) || monitorConfig.AlertSensitivity != providerConfig.AlertSensitivity { t.Error("URL, name, frequency, probes and alertSensitivity should be the same", monitor, m) } service.Remove(*monitor)