Skip to content

Commit

Permalink
Resolve error in tests: 5 retries now mean the function should be cal…
Browse files Browse the repository at this point in the history
…led 6 times in total.
  • Loading branch information
Abouzar Kamaee committed Jun 20, 2024
1 parent 7b3a86e commit 709a57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/es_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestDrainRetriesUntilMax(t *testing.T) {
require.EqualValues(t, 1, info["GET http://elasticsearch:9200/_cluster/health"])
require.EqualValues(t, 2, info["PUT http://elasticsearch:9200/_cluster/settings"])
require.EqualValues(t, 2, info["GET http://elasticsearch:9200/_cluster/settings"])
require.EqualValues(t, 5, info["GET http://elasticsearch:9200/_cat/shards"])
require.EqualValues(t, 6, info["GET http://elasticsearch:9200/_cat/shards"])
}

func TestDrainRetriesUntilSuccess(t *testing.T) {
Expand Down

0 comments on commit 709a57d

Please sign in to comment.