open-nomad/testutil
Mahmood Ali b7d421a149 tests: WaitForRunning checks for pending only
WaitForRunning risks a race condition where the allocation succeeds and
completes before WaitForRunning is called (or while it is running).

Here, I made the behavior match the function documentation.

I considered making it stricter, but callers need to account for
allocation terminating immediately after WaitForRunning terminates
anyway.
2019-01-10 15:36:57 -05:00
..
responsewriter.go
server.go
slow.go
vault.go
wait.go tests: WaitForRunning checks for pending only 2019-01-10 15:36:57 -05:00
wait_test.go