Commit d609401
Fix flaky reset test in general_test.dart
The `reset` test in `example/integration_test/general_test.dart` was flaky because it used a very small file (google.com) for the download task. This often caused the task to complete before `reset()` could cancel it, resulting in `reset()` returning 0 (expected 1) and the final task status being `complete` (expected `canceled`).
This change updates the test to use `urlWithContentLength` (a ~5MB file), ensuring the download takes long enough to be successfully cancelled by `reset()`.1 parent db16711 commit d609401
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
510 | 513 | | |
511 | 514 | | |
512 | 515 | | |
| |||
0 commit comments