Luiz Aoqui
53da285c25
ci: fix TestNomad_BootstrapExpect_NonVoter test ( #14407 )
...
PR #12130 refactored the test to use the `wantPeers` helper, but this
function only returns the number of voting peers, which in this test
should be equal to 2.
I think the tests were passing back them because of a bug in Raft
(https://github.com/hashicorp/raft/pull/483 ) where a non-voting server
was able to transition to candidate state.
One possible evidence of this is that a successful test run would have
the following log line:
```
raft@v1.3.5/raft.go:1058: nomad.raft: updating configuration: command=AddVoter server-id=127.0.0.1:9101 server-addr=127.0.0.1:9101 servers="[{Suffrage:Voter ID:127.0.0.1:9107 Address:127.0.0.1:9107} {Suffrage:Voter ID:127.0.0.1:9105 Address:127.0.0.1:9105} {Suffrage:Voter ID:127.0.0.1:9103 Address:127.0.0.1:9103} {Suffrage:Voter ID:127.0.0.1:9101 Address:127.0.0.1:9101}]"
```
This commit reverts the test logic to check for peer count, regardless
of voting status.
2022-08-30 16:32:54 -04:00
..
2022-08-17 18:26:34 +02:00
2022-08-17 18:26:34 +02:00
2022-08-30 08:59:13 +01:00
2022-08-30 08:59:13 +01:00
2022-08-18 11:39:14 -07:00
2022-08-30 10:59:25 -04:00
2022-07-06 16:30:11 +02:00
2022-08-25 09:20:43 +01:00
2022-08-25 09:20:43 +01:00
2022-08-25 12:14:29 +01:00
2022-08-25 12:14:29 +01:00
2022-08-17 18:26:34 +02:00
2022-08-17 18:26:34 +02:00
2022-03-15 12:58:52 -05:00
2020-02-16 16:04:59 -06:00
2022-07-15 14:12:44 -05:00
2022-07-15 14:12:44 -05:00
2019-07-18 10:32:12 -04:00
2022-03-15 12:58:52 -05:00
2022-08-24 09:56:15 -05:00
2022-03-15 12:58:52 -05:00
2022-08-17 18:26:34 +02:00
2022-03-15 12:58:52 -05:00
2022-08-17 18:26:34 +02:00
2022-08-18 16:32:04 -07:00
2021-04-01 11:16:52 -04:00
2022-03-15 12:58:52 -05:00
2022-08-17 18:26:34 +02:00
2022-03-15 12:58:52 -05:00
2022-02-18 16:12:36 -08:00
2022-03-15 12:58:52 -05:00
2018-09-15 16:23:13 -07:00
2022-08-30 08:59:13 +01:00
2022-03-15 12:58:52 -05:00
2022-03-15 12:58:52 -05:00
2022-08-16 11:14:11 -05:00
2022-04-01 19:24:02 -05:00
2022-03-15 12:58:52 -05:00
2022-06-02 18:43:58 -04:00
2022-08-30 08:59:13 +01:00
2022-08-30 08:59:13 +01:00
2022-08-18 16:32:04 -07:00
2022-06-09 11:33:22 -04:00
2022-08-17 18:26:34 +02:00
2022-03-11 19:44:52 -05:00
2021-04-05 10:03:19 -06:00
2022-08-17 18:26:34 +02:00
2019-05-21 16:13:32 -04:00
2022-08-30 10:59:25 -04:00
2022-08-30 10:59:25 -04:00
2021-10-01 10:14:28 -04:00
2022-03-15 12:58:52 -05:00
2022-08-16 11:14:11 -05:00
2022-07-11 16:42:17 -04:00
2022-07-11 16:42:17 -04:00
2022-03-15 12:58:52 -05:00
2022-08-17 18:26:34 +02:00
2022-01-13 11:32:16 +01:00
2021-10-01 10:14:28 -04:00
2022-08-30 08:59:13 +01:00
2022-08-30 08:59:13 +01:00
2022-08-17 18:26:34 +02:00
2022-04-21 10:05:58 -04:00
2022-08-17 18:26:34 +02:00
2022-08-17 18:26:34 +02:00
2022-08-16 11:14:11 -05:00
2022-08-16 11:14:11 -05:00
2022-04-05 14:18:10 -04:00
2022-05-19 12:13:34 -05:00
2022-04-20 14:09:13 +02:00
2022-04-20 14:09:13 +02:00
2022-08-17 18:26:34 +02:00
2022-08-18 16:33:00 -04:00
2022-08-17 18:26:34 +02:00
2022-08-22 18:38:49 -04:00
2022-04-01 19:24:02 -05:00
2022-08-19 15:46:54 -07:00
2022-07-20 14:46:57 -04:00
2022-08-26 16:06:24 -04:00
2021-10-01 10:14:28 -04:00
2022-08-22 17:20:23 +02:00
2022-08-30 08:59:13 +01:00
2022-03-15 12:58:52 -05:00
2021-01-14 12:46:35 -08:00
2022-08-17 18:26:34 +02:00
2022-07-06 14:35:18 -07:00
2022-07-06 16:13:48 +02:00
2022-07-06 16:13:48 +02:00
2022-03-15 12:58:52 -05:00
2020-10-27 16:33:01 -04:00
2022-03-15 12:58:52 -05:00
2021-03-25 11:27:09 -04:00
2022-07-12 18:40:20 -04:00
2022-07-12 18:40:20 -04:00
2022-01-13 11:32:16 +01:00
2022-03-15 12:58:52 -05:00
2022-04-07 09:58:09 -04:00
2022-08-16 11:14:11 -05:00
2022-06-23 12:06:27 -04:00
2022-02-04 20:35:20 -05:00
2022-03-15 12:58:52 -05:00
2022-03-15 12:58:52 -05:00
2022-02-02 14:32:26 -06:00
2022-03-15 12:58:52 -05:00
2018-09-15 16:23:13 -07:00
2022-07-06 16:30:11 +02:00
2022-04-09 13:22:44 +02:00
2022-03-15 12:58:52 -05:00
2022-08-17 18:26:34 +02:00
2022-08-26 16:06:24 -04:00
2022-03-15 12:58:52 -05:00
2022-08-30 13:27:31 -04:00
2022-08-30 16:32:54 -04:00
2022-08-16 11:22:33 -07:00
2022-08-23 13:44:10 -07:00
2022-08-23 13:44:10 -07:00
2022-08-24 17:03:29 -04:00
2022-08-30 08:19:48 -05:00
2022-07-11 13:34:05 -04:00
2022-07-20 10:42:35 -05:00
2022-03-15 12:58:52 -05:00
2022-02-18 16:12:36 -08:00
2022-03-15 12:58:52 -05:00
2022-02-18 16:12:36 -08:00
2022-03-15 12:58:52 -05:00
2021-08-30 11:08:12 +02:00
2021-10-01 10:14:28 -04:00
2022-07-11 13:34:04 -04:00
2022-03-15 12:58:52 -05:00
2020-03-31 09:45:21 -04:00
2022-04-05 17:12:23 -04:00
2022-03-24 14:44:21 -04:00
2022-08-26 16:06:24 -04:00
2022-08-26 16:06:24 -04:00
2022-08-17 18:26:34 +02:00
2022-08-24 17:03:29 -04:00
2022-08-24 17:03:29 -04:00
2022-01-06 11:56:13 -05:00
2022-01-06 11:56:13 -05:00
2022-03-15 12:58:52 -05:00
2022-04-05 17:12:23 -04:00