Skip to content

Commit d0a031c

Browse files
committed
Flaky tests
1 parent 8456d76 commit d0a031c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/ElasticsearchNIOClientTests/ElasticsearchNIOClientTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class ElasticSearchIntegrationTests: XCTestCase {
128128
func testUpdateDocumentWithID() throws {
129129
let item = SomeItem(id: UUID(), name: "Banana")
130130
_ = try client.createDocumentWithID(item, in: self.indexName).wait()
131-
Thread.sleep(forTimeInterval: 0.5)
131+
Thread.sleep(forTimeInterval: 1.0)
132132
let updatedItem = SomeItem(id: item.id, name: "Bananas")
133133
let response = try client.updateDocument(updatedItem, in: self.indexName).wait()
134134
XCTAssertEqual(response.result, "updated")
@@ -476,7 +476,7 @@ class ElasticSearchIntegrationTests: XCTestCase {
476476
}
477477

478478
// This is required for ES to settle and load the indexes to return the right results
479-
Thread.sleep(forTimeInterval: 1.0)
479+
Thread.sleep(forTimeInterval: 2.0)
480480

481481
struct Query: Encodable {
482482
let query: QueryBody

0 commit comments

Comments
 (0)