James Phillips
55b4446fbb
Makes WaitForResult always return an error if it times out.
2017-03-23 20:04:39 -07:00
Seth Vargo
3077d0f68c
Reduce coupling with testing.T
...
This reduces the coupling with testing.T, allowing many of the
server's startup-related functions to return an error. This makes them
more re-usable.
2017-03-23 18:41:19 -04:00
James Phillips
ba9eb7fcb1
Adds a little wait after we get the event we were seeking.
2017-01-26 22:15:54 -08:00
James Phillips
dd9ecbf440
Run the waited-for function before sleeping, and ramp up the sleep exponentially.
2017-01-26 17:11:16 -08:00
James Phillips
0a7aa91607
Drops the unit test wait time back down and turns initial wait into blocking query.
2017-01-26 16:57:44 -08:00
James Phillips
ccd0c8e2bf
Bumps the wait even more.
2017-01-26 09:15:29 -08:00
James Phillips
0adee272eb
Bumps the wait a little more.
2017-01-26 08:20:43 -08:00
James Phillips
2fdcd250f2
Adds more time to WaitForResult.
...
The last change here made the time overall theoretically the same, but the overhead of running so quickly before probably meant that we were spending longer. Tests seemed marginal in Travis so doubling this to see how things go.
2017-01-26 08:04:48 -08:00
Seth Vargo
efc1c8614b
Sleep for longer, but try less often
...
This fixes an issue where the system can quickly run out of file
descriptors because they are accumulating faster than the kernel can
release them.
2017-01-26 00:13:34 -05:00
Armon Dadgar
8b7417a043
testutil: Using the correct RPC struct
2014-06-10 19:12:36 -07:00
Nelson Elhage
87231e5234
WaitForLeader: Also wait for a non-zero index.
...
On my laptop, I'm currently seeing a huge number of intermittent test
failures all related to WaitForLeader returning after the test node has
become a leader, but before it has actually finished starting up, in
particular, performing the serf/Raft reconciliation.
Waiting for the index to become nonzero makes the tests pass reliably,
by also blocking until the new leader has started committing state.
2014-05-26 13:26:42 -07:00
Armon Dadgar
9470f9a5a2
gofmt
2014-05-20 16:25:29 -07:00
William Tisäter
f7a33c2731
Speed up test runs in WaitForResult
2014-05-09 03:00:43 +02:00
William Tisäter
e1471576a4
Increase timeout for WaitForResult
2014-05-09 02:43:48 +02:00
William Tisäter
1ee709ba38
Require datacenter argument for WaitForLeader
2014-05-09 01:17:35 +02:00
William Tisäter
bdbe97545a
Drop client arguments from WaitForLeader
2014-05-07 23:41:14 +02:00
William Tisäter
2019f454d0
Fix TestCatalogListNodes_StaleRaad
with WaitForLeader
2014-05-07 13:53:29 +02:00
William Tisäter
82ec4e5fba
Add testutils.WaitForLeader
and truly wait
2014-05-07 11:43:42 +02:00
William Tisäter
81b572cb31
Proof of concept using WaitForResult
in tests
2014-05-07 02:48:25 +02:00