openbase / bco.device

Other
0 stars 0 forks source link

Use the UnitStateAwaiter in agent test #39

Closed pLeminoq closed 7 years ago

pLeminoq commented 7 years ago

The UnitStateAwaiter is a generic solution to wait till a unit has a specific state. It can be used in unit tests to replace the Thread.sleep() which speeds up the test.

I already used it for the AbsenceEnergySavingAgentTest. Please also use it for the other agent tests.

TimoMichi commented 7 years ago

All agent tests are using the UnitStateAwaiter now. Work is done on feature-resource-allocation branch. (72a7b65c6dcfe134192e6ce096b100d99444f152)

Might be merged to master after review.