Skip to content

Commit

Permalink
refs #4387 fixed another race condition in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnich committed Jan 14, 2022
1 parent b5f1ae5 commit 469c037
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/test/qore/threads/max-threads-count.qtest
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class MaxThreadCountTest inherits QUnit::Test {
}

t(Counter c) {
on_exit c.dec();
c.inc();
q.get();
q.push(1);
}
Expand All @@ -40,8 +40,6 @@ public class MaxThreadCountTest inherits QUnit::Test {
Counter c();
try {
while (True) {
c.inc();
on_error c.dec();
background t(c);
}
} catch (hash<ExceptionInfo> ex) {
Expand All @@ -55,7 +53,6 @@ public class MaxThreadCountTest inherits QUnit::Test {
}

assertGt(1, limit);
c.waitForZero();
assertEq(1, num_threads());
assertEq(c.getCount() + 1, limit);
}
}

0 comments on commit 469c037

Please sign in to comment.