fix(GODT-3124): Race conditions reported by race check

This commit is contained in:
Leander Beernaert
2023-11-27 16:30:27 +01:00
parent 414d74d06a
commit f7434109be
3 changed files with 62 additions and 31 deletions

View File

@ -43,7 +43,7 @@ func (s *scenario) bridgeSendsTheFollowingHeartbeat(text *godog.DocString) error
return err
}
return matchHeartbeat(s.t.heartbeat.heartbeat, wantHeartbeat)
return matchHeartbeat(s.t.heartbeat.GetRecordedHeartbeat(), wantHeartbeat)
}
func (s *scenario) bridgeNeedsToSendHeartbeat() error {