Unstable TestRpsWorkerPullRps unit test
One of our unit tests is unstable and sometimes fails.
=== RUN TestRpsWorkerPullRps
time="2022-08-01T10:15:28Z" level=info msg="Checking connection to database"
time="2022-08-01T10:15:28Z" level=info msg="Checking connection to database"
time="2022-08-01T10:15:28Z" level=info msg="Updating KeaDHCPDaemonStats: {RPS1:0 RPS2:0}"
time="2022-08-01T10:15:29Z" level=info msg="Updating KeaDHCPDaemonStats: {RPS1:0 RPS2:0}"
time="2022-08-01T10:15:31Z" level=info msg="Updating KeaDHCPDaemonStats: {RPS1:1 RPS2:1}"
time="2022-08-01T10:15:31Z" level=info msg="Updating KeaDHCPDaemonStats: {RPS1:2 RPS2:2}"
rps_test.go:279:
Error Trace: rps_test.go:279
rps_test.go:153
Error: Not equal:
expected: 2
actual : 1
Test: TestRpsWorkerPullRps
--- FAIL: TestRpsWorkerPullRps (2.42s)