Skip to content

Commit

Permalink
Fix grafana synthetic tests (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
MuneebAijaz authored Dec 13, 2024
1 parent 96cea5e commit 78a9718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitors/grafana/grafana-monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78a9718

Please sign in to comment.