| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ class FutureSemaphoreTest extends FlatSpec with Matchers with ScalaFutures { | |||
| 12 | 12 | ||
| 13 | 13 | // These tests are horrid, perhaps they should not be included | |
| 14 | 14 | ||
| 15 | - "FutureSemaphore" should "return results when executing fewer tasks than the threshold" in { | ||
| 15 | + "FutureSemaphore" should "complete 4 out of 4 tasks when threshold is 4" in { | ||
| 16 | 16 | val actor = FutureSemaphore.actorRef(4) | |
| 17 | 17 | whenReady { | |
| 18 | 18 | Future.traverse(1 to 4)(_ => FutureSemaphore.executeTask(actor, Future(Thread.sleep(2)))) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments