Skip to content

Commit

Permalink
fix: no_blocking.test.w flaking (#4921)
Browse files Browse the repository at this point in the history
Fixes #4874

## Checklist

- [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [ ] Description explains motivation and solution
- [ ] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
  • Loading branch information
Chriscbr authored Nov 13, 2023
1 parent d8fa0a7 commit c48ce7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tests/sdk_tests/topic/no_blocking.test.w
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ test "topic subscribers are invoked without blocking" {
// since the subscriber sleeps for 3 seconds, the counter should still be 0
assert(counter.peek() == 0);

util.sleep(6s);

// after a while, the counter should be 1
util.waitUntil(inflight () => { return counter.peek() == 1; }, interval: 1s, timeout: 30s);

assert(counter.peek() == 1);
}

0 comments on commit c48ce7e

Please sign in to comment.