-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: queue retention time in spec test is too short (#4287)
Looks like the minimum is 60 seconds See https://github.com/winglang/wing/actions/runs/6314317373/job/17144314958 *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
1 parent
d6fb4d0
commit 3a84b1c
Showing
3 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
bring cloud; | ||
bring util; | ||
|
||
let var timeout = 100ms; | ||
let var retentionPeriod = 1s; | ||
let var timeout = 30s; | ||
let var retentionPeriod = 60s; | ||
|
||
let q = new cloud.Queue(timeout: timeout, retentionPeriod: retentionPeriod); | ||
|
||
test "retentionPeriod" { | ||
new std.Test(inflight () => { | ||
q.push("hello", "world"); | ||
|
||
util.sleep(retentionPeriod); | ||
|
||
assert(util.waitUntil(() => { | ||
return q.approxSize() == 0; | ||
})); | ||
} | ||
}, timeout: 2m) as "retentionPeriod"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters