Skip to content

Commit f57cb10

Browse files
Tests: Fix Typo Causing Flaky Settings Test (elastic#32665)
* We were comparing the wrong timeout value in the `randomValueOtherThan` call here, leading to no mutation happening for a certain seed * closes elastic#32639
1 parent 1122314 commit f57cb10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/action/admin/indices/settings/put/UpdateSettingsRequestStreamableTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected UpdateSettingsRequest mutateInstance(UpdateSettingsRequest request) {
4141
List<Runnable> mutators = new ArrayList<>();
4242
mutators.add(() -> mutation
4343
.masterNodeTimeout(randomValueOtherThan(request.masterNodeTimeout().getStringRep(), ESTestCase::randomTimeValue)));
44-
mutators.add(() -> mutation.timeout(randomValueOtherThan(request.masterNodeTimeout().getStringRep(), ESTestCase::randomTimeValue)));
44+
mutators.add(() -> mutation.timeout(randomValueOtherThan(request.timeout().getStringRep(), ESTestCase::randomTimeValue)));
4545
mutators.add(() -> mutation.settings(mutateSettings(request.settings())));
4646
mutators.add(() -> mutation.indices(mutateIndices(request.indices())));
4747
mutators.add(() -> mutation.indicesOptions(randomValueOtherThan(request.indicesOptions(),

0 commit comments

Comments
 (0)