Removed unreliable check from Downloader tests - sometimes there is more than 1 …
…download in the queue which makes the tests fail
Showing
1 changed file
with
0 additions
and
7 deletions
@@ -91,7 +91,6 @@ | @@ -91,7 +91,6 @@ | ||
91 | XCTFail(@"Something went wrong"); | 91 | XCTFail(@"Something went wrong"); |
92 | } | 92 | } |
93 | }]; | 93 | }]; |
94 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
95 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 94 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
96 | } | 95 | } |
97 | 96 | ||
@@ -142,7 +141,6 @@ | @@ -142,7 +141,6 @@ | ||
142 | XCTFail(@"Something went wrong"); | 141 | XCTFail(@"Something went wrong"); |
143 | } | 142 | } |
144 | }]; | 143 | }]; |
145 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
146 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 144 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
147 | [SDWebImageDownloader sharedDownloader].username = nil; | 145 | [SDWebImageDownloader sharedDownloader].username = nil; |
148 | [SDWebImageDownloader sharedDownloader].password = nil; | 146 | [SDWebImageDownloader sharedDownloader].password = nil; |
@@ -160,7 +158,6 @@ | @@ -160,7 +158,6 @@ | ||
160 | // progressive updates | 158 | // progressive updates |
161 | } | 159 | } |
162 | }]; | 160 | }]; |
163 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
164 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 161 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
165 | } | 162 | } |
166 | 163 | ||
@@ -175,7 +172,6 @@ | @@ -175,7 +172,6 @@ | ||
175 | XCTFail(@"Something went wrong"); | 172 | XCTFail(@"Something went wrong"); |
176 | } | 173 | } |
177 | }]; | 174 | }]; |
178 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
179 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 175 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
180 | } | 176 | } |
181 | 177 | ||
@@ -236,7 +232,6 @@ | @@ -236,7 +232,6 @@ | ||
236 | XCTFail(@"Something went wrong"); | 232 | XCTFail(@"Something went wrong"); |
237 | } | 233 | } |
238 | }]; | 234 | }]; |
239 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
240 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 235 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
241 | } | 236 | } |
242 | 237 | ||
@@ -250,7 +245,6 @@ | @@ -250,7 +245,6 @@ | ||
250 | XCTFail(@"Something went wrong"); | 245 | XCTFail(@"Something went wrong"); |
251 | } | 246 | } |
252 | }]; | 247 | }]; |
253 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
254 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 248 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
255 | } | 249 | } |
256 | 250 | ||
@@ -264,7 +258,6 @@ | @@ -264,7 +258,6 @@ | ||
264 | XCTFail(@"Something went wrong"); | 258 | XCTFail(@"Something went wrong"); |
265 | } | 259 | } |
266 | }]; | 260 | }]; |
267 | - expect([SDWebImageDownloader sharedDownloader].currentDownloadCount).to.equal(1); | ||
268 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; | 261 | [self waitForExpectationsWithTimeout:kAsyncTestTimeout handler:nil]; |
269 | } | 262 | } |
270 | 263 |
-
Please register or login to post a comment