Skip to content

Commit

Permalink
Fix prepareMocks in metrics test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMatthes committed Apr 30, 2024
1 parent 6e9a00c commit 4d62f9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions monitor/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d62f9d

Please sign in to comment.