Skip to content

Commit

Permalink
fix test condition
Browse files Browse the repository at this point in the history
  • Loading branch information
miagilepner committed Nov 22, 2024
1 parent 7d8b908 commit e000674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vault/external_tests/raft/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ func TestSysHealth_Raft(t *testing.T) {

// now that the node can connect again, it will start getting the removed
// error when trying to connect. The code should be removed, and the ha
// connection should be unhealthy
// connection will be nil because there is no ha connection
testhelpers.RetryUntil(t, 10*time.Second, func() error {
resp, err := followerClient.Logical().ReadRawWithData("sys/health", map[string][]string{
"perfstandbyok": {"true"},
Expand All @@ -1506,6 +1506,6 @@ func TestSysHealth_Raft(t *testing.T) {
})
r := parseHealthBody(t, erroredResponse)
require.True(t, true, *r.RemovedFromCluster)
require.False(t, false, *r.HAConnectionHealthy)
require.Nil(t, false, r.HAConnectionHealthy)
})
}

0 comments on commit e000674

Please sign in to comment.