Skip to content

Commit dacf940

Browse files
authored
fix(java): dont use watch=true in replaceAllObjectsWithTransformation (#5516)
1 parent fcb5f78 commit dacf940

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/cts/testServer/replaceAllObjectsWithTransformation.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ function addRoutes(app: Express): void {
119119
/^cts_e2e_replace_all_objects_with_transformation_(.*)_tmp_\d+$/,
120120
)?.[1] as string;
121121
expect(raowtState).to.include.keys(lang);
122-
expect(req.body.action === 'addObject').to.equal(true);
123-
expect(req.query.referenceIndexName === `cts_e2e_replace_all_objects_with_transformation_${lang}`).to.equal(true);
122+
expect(req.body.action).to.equals('addObject');
123+
expect(req.query.referenceIndexName).to.equals(`cts_e2e_replace_all_objects_with_transformation_${lang}`);
124+
expect(req.query.watch ?? 'false').to.equal('false');
124125

125126
raowtState[lang].pushCount++;
126127

templates/java/api_helpers.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public <T> List<WatchResponse> chunkedPush(
6060
WatchResponse watch = this.push(
6161
indexName,
6262
new PushTaskPayload().setAction(action).setRecords(this.objectsToPushTaskRecords(records)),
63-
waitForTasks,
63+
false,
6464
referenceIndexName,
6565
requestOptions
6666
);

0 commit comments

Comments
 (0)