Commit Graph

70 Commits (26b30b160683f7f6a3afe7f98a34af8db4716b93)

Author SHA1 Message Date
Ryan Uber ed32eb3917 testutil: support retrieving kv pairs 2015-03-19 17:03:07 -07:00
Ryan Uber 63f05b1c56 testutil: support joining and specifying datacenters 2015-03-19 17:03:07 -07:00
Ryan Uber fa7414e276 testutil: Use HTTPAddr 2015-03-19 17:03:07 -07:00
Ryan Uber 8ea04bbb3f testutil: server comments 2015-03-19 17:03:07 -07:00
Ryan Uber c6cebc2b91 testutil: Support creating additional checks 2015-03-19 17:03:07 -07:00
Ryan Uber 313f89439e testutil: allow creation of services 2015-03-19 17:03:06 -07:00
Ryan Uber 576c49eaf0 testutil: working on helpers 2015-03-19 17:03:06 -07:00
Ryan Uber 78f9f53bf1 testutil: exposing the API address from the test server 2015-03-19 17:03:06 -07:00
Ryan Uber 37f6301856 testutil: initial pass at moving test server harness into testutil 2015-03-19 17:03:06 -07:00
Armon Dadgar 1b15415616 testutil: Using the correct RPC struct 2014-06-10 19:12:36 -07:00
Nelson Elhage 2080122f38 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 14be60aaca gofmt 2014-05-20 16:25:29 -07:00
William Tisäter 76d9fa255b Speed up test runs in `WaitForResult` 2014-05-09 03:00:43 +02:00
William Tisäter e1d111a43d Increase timeout for `WaitForResult` 2014-05-09 02:43:48 +02:00
William Tisäter 78145ecfd5 Require datacenter argument for `WaitForLeader` 2014-05-09 01:17:35 +02:00
William Tisäter 0ed5599ffe Add test file for testutil 2014-05-07 23:42:15 +02:00
William Tisäter c8168bd8fe Drop client arguments from `WaitForLeader` 2014-05-07 23:41:14 +02:00
William Tisäter aa00bfff7d Fix `TestCatalogListNodes_StaleRaad` with `WaitForLeader` 2014-05-07 13:53:29 +02:00
William Tisäter f1b9dbe5c3 Add `testutils.WaitForLeader` and truly wait 2014-05-07 11:43:42 +02:00
William Tisäter 028bc7e1b4 Proof of concept using `WaitForResult` in tests 2014-05-07 02:48:25 +02:00