Fix data race

10 jobs for prometheuse in 14 minutes and 8 seconds (queued for 17 seconds)
Status Job ID Name Coverage
  Lint
passed #61339735
lint

00:02:20

 
  Vendor
passed #61339742
vendor

00:02:26

 
  Test
failed #61339748
test:coverage

00:01:35

passed #61339750
test:docker

00:09:09

failed #61339745
test:unit

00:01:48

 
  Integration
skipped #61339752
docker
integration:oneShot
skipped #61339766
docker
integration:oneShotOneNodeOneLap
skipped #61339759
docker
integration:oneShotReplayLaps
skipped #61339761
docker
integration:oneShotReplayLapsNoJoin
skipped #61339756
docker
integration:repeat
 
Name Stage Failure
failed
test:unit Test
ok  	lorhammer/src/orchestrator/deploy	1.178s
ok lorhammer/src/orchestrator/prometheus 1.018s
ok lorhammer/src/orchestrator/provisioning 1.100s
ok lorhammer/src/orchestrator/testsuite 1.180s
ok lorhammer/src/orchestrator/testtype 4.628s
ok lorhammer/src/tools 2.842s
make: *** [test] Error 1
Makefile:42: recipe for target 'test' failed
ERROR: Job failed: exit code 1
failed
test:coverage Test
goroutine 13 [running]:
lorhammer/src/lorhammer/lora.(*LorhammerGateway).readPackets(0xc420082cd0, 0x9a3900, 0xc420028ece, 0xc420026840, 0xc4200268a0, 0xc42006c7e0)
/go/src/lorhammer/src/lorhammer/lora/gateway.go:196 +0x1cd
created by lorhammer/src/lorhammer/lora.TestReadPackets
/go/src/lorhammer/src/lorhammer/lora/gateway_test.go:194 +0x11d
FAIL lorhammer/src/lorhammer/lora 1.008s
Makefile:46: recipe for target 'cover' failed
make: *** [cover] Error 1
ERROR: Job failed: exit code 1