@@ -41,7 +41,7 @@ class IndexesTests: XCTestCase {
41
41
getIndexesExp. fulfill ( )
42
42
}
43
43
}
44
- self . wait ( for: [ getIndexesExp] , timeout: 5 .0)
44
+ self . wait ( for: [ getIndexesExp] , timeout: 20 .0)
45
45
}
46
46
47
47
func testCreateIndex( ) {
@@ -68,7 +68,7 @@ class IndexesTests: XCTestCase {
68
68
createExpectation. fulfill ( )
69
69
}
70
70
}
71
- self . wait ( for: [ createExpectation] , timeout: 5 .0)
71
+ self . wait ( for: [ createExpectation] , timeout: 20 .0)
72
72
}
73
73
74
74
func testCreateIndexThatAlreadyExists( ) {
@@ -83,7 +83,7 @@ class IndexesTests: XCTestCase {
83
83
deleteException. fulfill ( )
84
84
}
85
85
}
86
- self . wait ( for: [ deleteException] , timeout: 5 .0)
86
+ self . wait ( for: [ deleteException] , timeout: 20 .0)
87
87
88
88
let createExpectation = XCTestExpectation ( description: " Create Movies index " )
89
89
createGenericIndex ( client: self . client, uid: self . uid ) { result in
@@ -98,7 +98,7 @@ class IndexesTests: XCTestCase {
98
98
createExpectation. fulfill ( )
99
99
}
100
100
}
101
- self . wait ( for: [ createExpectation] , timeout: 5 .0)
101
+ self . wait ( for: [ createExpectation] , timeout: 20 .0)
102
102
103
103
let create2ndIndexExpectation = XCTestExpectation ( description: " Create Movies index that already exists and fail " )
104
104
self . client. createIndex ( uid: self . uid) { result in
@@ -127,7 +127,7 @@ class IndexesTests: XCTestCase {
127
127
create2ndIndexExpectation. fulfill ( )
128
128
}
129
129
}
130
- self . wait ( for: [ create2ndIndexExpectation] , timeout: 5 .0)
130
+ self . wait ( for: [ create2ndIndexExpectation] , timeout: 20 .0)
131
131
132
132
}
133
133
@@ -144,7 +144,7 @@ class IndexesTests: XCTestCase {
144
144
createExpectation. fulfill ( )
145
145
}
146
146
}
147
- self . wait ( for: [ createExpectation] , timeout: 5 .0)
147
+ self . wait ( for: [ createExpectation] , timeout: 20 .0)
148
148
149
149
let getIndexExpectation = XCTestExpectation ( description: " Get index " )
150
150
@@ -160,7 +160,7 @@ class IndexesTests: XCTestCase {
160
160
}
161
161
}
162
162
163
- self . wait ( for: [ getIndexExpectation] , timeout: 5 .0)
163
+ self . wait ( for: [ getIndexExpectation] , timeout: 20 .0)
164
164
}
165
165
166
166
func testGetIndexes( ) {
@@ -175,7 +175,7 @@ class IndexesTests: XCTestCase {
175
175
createExpectation. fulfill ( )
176
176
}
177
177
}
178
- self . wait ( for: [ createExpectation] , timeout: 5 .0)
178
+ self . wait ( for: [ createExpectation] , timeout: 20 .0)
179
179
180
180
let expectation = XCTestExpectation ( description: " Load indexes " )
181
181
@@ -190,7 +190,7 @@ class IndexesTests: XCTestCase {
190
190
}
191
191
}
192
192
193
- self . wait ( for: [ expectation] , timeout: 5 .0)
193
+ self . wait ( for: [ expectation] , timeout: 20 .0)
194
194
}
195
195
196
196
func testUpdateIndexName( ) {
@@ -205,7 +205,7 @@ class IndexesTests: XCTestCase {
205
205
createExpectation. fulfill ( )
206
206
}
207
207
}
208
- self . wait ( for: [ createExpectation] , timeout: 5 .0)
208
+ self . wait ( for: [ createExpectation] , timeout: 20 .0)
209
209
210
210
// This tests should tests primary key when they are added to this function
211
211
let updateExpectation = XCTestExpectation ( description: " Update movie index " )
@@ -239,7 +239,7 @@ class IndexesTests: XCTestCase {
239
239
updateExpectation. fulfill ( )
240
240
}
241
241
}
242
- self . wait ( for: [ updateExpectation] , timeout: 5 .0)
242
+ self . wait ( for: [ updateExpectation] , timeout: 20 .0)
243
243
}
244
244
245
245
func testDeleteIndex( ) {
@@ -255,7 +255,7 @@ class IndexesTests: XCTestCase {
255
255
createExpectation. fulfill ( )
256
256
}
257
257
}
258
- self . wait ( for: [ createExpectation] , timeout: 5 .0)
258
+ self . wait ( for: [ createExpectation] , timeout: 20 .0)
259
259
260
260
let deleteException = XCTestExpectation ( description: " Delete Movies index " )
261
261
deleteIndex ( client: self . client, uid: self . uid) { result in
@@ -270,7 +270,7 @@ class IndexesTests: XCTestCase {
270
270
deleteException. fulfill ( )
271
271
}
272
272
}
273
- self . wait ( for: [ deleteException] , timeout: 5 .0)
273
+ self . wait ( for: [ deleteException] , timeout: 20 .0)
274
274
}
275
275
276
276
// TODO: remove
@@ -289,7 +289,7 @@ class IndexesTests: XCTestCase {
289
289
// }
290
290
// }
291
291
292
- // self.wait(for: [expectation], timeout: 5 .0)
292
+ // self.wait(for: [expectation], timeout: 20 .0)
293
293
// }
294
294
295
295
// func testGetOrCreateIndexAlreadyExists() {
@@ -306,7 +306,7 @@ class IndexesTests: XCTestCase {
306
306
// }
307
307
// }
308
308
309
- // self.wait(for: [expectation], timeout: 5 .0)
309
+ // self.wait(for: [expectation], timeout: 20 .0)
310
310
311
311
// sleep(2)
312
312
@@ -323,7 +323,7 @@ class IndexesTests: XCTestCase {
323
323
// }
324
324
// }
325
325
326
- // self.wait(for: [secondExpectation], timeout: 5 .0)
326
+ // self.wait(for: [secondExpectation], timeout: 20 .0)
327
327
// }
328
328
329
329
}
0 commit comments