From 4d62f9dc475980652bd374b33e89e085983a4ac5 Mon Sep 17 00:00:00 2001 From: Philipp Matthes Date: Tue, 30 Apr 2024 10:07:05 +0200 Subject: [PATCH] Fix prepareMocks in metrics test --- monitor/metrics_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/monitor/metrics_test.go b/monitor/metrics_test.go index f6b13ad..b5f3a3a 100644 --- a/monitor/metrics_test.go +++ b/monitor/metrics_test.go @@ -47,11 +47,11 @@ func prepareMocks() { return time.Unix(0, 0), true } getObservationsReceivedByTopic = func(f func(k, v interface{}) bool) { - f("primary_signal", 1) - f("signal_program", 1) - f("cycle_second", 1) - f("detector_bike", 0) - f("detector_car", 0) + f("primary_signal", uint64(1)) + f("signal_program", uint64(1)) + f("cycle_second", uint64(1)) + f("detector_bike", uint64(0)) + f("detector_car", uint64(0)) } getObservationsReceived = func() uint64 { return 1