mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-13 07:24:53 +00:00
Pass flaky VehicleSpawnControl*Test using delay
This commit is contained in:
parent
e4d607533f
commit
6a0c2a6955
1 changed files with 6 additions and 0 deletions
|
|
@ -224,6 +224,12 @@ object VehicleSpawnPadControlTest {
|
||||||
}
|
}
|
||||||
zone.Actor = system.actorOf(Props(classOf[ZoneActor], zone), s"test-zone-${System.nanoTime()}")
|
zone.Actor = system.actorOf(Props(classOf[ZoneActor], zone), s"test-zone-${System.nanoTime()}")
|
||||||
zone.Actor ! Zone.Init()
|
zone.Actor ! Zone.Init()
|
||||||
|
|
||||||
|
// Hack: Wait for the Zone to finish booting, otherwise later tests will fail randomly due to race conditions
|
||||||
|
// with actor probe setting
|
||||||
|
// TODO(chord): Remove when Zone supports notification of booting being complete
|
||||||
|
Thread.sleep(5000)
|
||||||
|
|
||||||
vehicle.Actor = system.actorOf(Props(classOf[VehicleControl], vehicle), s"vehicle-control-${System.nanoTime()}")
|
vehicle.Actor = system.actorOf(Props(classOf[VehicleControl], vehicle), s"vehicle-control-${System.nanoTime()}")
|
||||||
|
|
||||||
val pad = VehicleSpawnPad(GlobalDefinitions.mb_pad_creation)
|
val pad = VehicleSpawnPad(GlobalDefinitions.mb_pad_creation)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue