Skip to content

Commit d68e9be

Browse files
bors[bot]bidoubiwa
andauthored
Merge #266
266: Improve timeout limit on wait task r=bidoubiwa a=bidoubiwa Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents 0f0eac2 + 75336ca commit d68e9be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Tests/MeiliSearchIntegrationTests/IndexesTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class IndexesTests: XCTestCase {
5050
self.client.createIndex(uid: self.uid) { result in
5151
switch result {
5252
case .success(let task):
53-
self.client.waitForTask(task: task) { result in
53+
self.client.waitForTask(task: task, options: WaitOptions(timeOut: 10.0)) { result in
5454
switch result {
5555
case .success(let task):
5656
XCTAssertEqual("indexCreation", task.type)

Tests/MeiliSearchIntegrationTests/SearchTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class SearchTests: XCTestCase {
537537
self.index.updateSettings(settings) { result in
538538
switch result {
539539
case .success(let task):
540-
self.client.waitForTask(task: task) { result in
540+
self.client.waitForTask(task: task, options: WaitOptions(timeOut: 10.0)) { result in
541541
switch result {
542542
case .success:
543543
completion(.success(()))

Tests/MeiliSearchIntegrationTests/Utils.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public func waitForTask(
5959
client.createIndex(uid: uid) { result in
6060
switch result {
6161
case .success(let task):
62-
client.waitForTask(task: task) { result in
62+
client.waitForTask(task: task, options: WaitOptions(timeOut: 10.0)) { result in
6363
switch result {
6464
case .success(let task):
6565
completion(.success(task))

0 commit comments

Comments
 (0)