Skip to content

Commit

Permalink
Windows: Reduce number of spawned / waiting Fibers when simulating ou…
Browse files Browse the repository at this point in the history
…tage
  • Loading branch information
Geod24 committed Jul 23, 2020
1 parent 1fe5ba1 commit 76532d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/geod24/LocalRest.d
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,10 @@ unittest

// Now drop many messages
n1.sleep(1.seconds, true);
for (size_t i = 0; i < 500; i++)
// Github Action runs out of memory with MessageCount == 500
version (Windows) enum MessageCount = 100;
else enum MessageCount = 500;
for (size_t i = 0; i < MessageCount; i++)
n2.asyncCall();
// Make sure we don't end up blocked forever
n1.sleep(0.seconds, false);
Expand Down

0 comments on commit 76532d1

Please sign in to comment.