-
Notifications
You must be signed in to change notification settings - Fork 44
Add timeout capability to TaskCollection
#1244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 69 commits
0ca274c
8231df5
53baa5b
fa704d5
bd7e649
1b5ca18
9568945
257cede
f2b9185
58e8d43
f89802c
78ce0e3
c41148b
28bcb6d
09d8a87
7ed5b05
e77d876
80c67b8
95bddb8
4a8242e
3325440
b5cefbf
dc8df19
44c4be7
2c367ba
d1c65fe
0348a2a
94dfbd5
924fa91
1140020
cd4148a
4fb0d94
eabf2d0
7ed5abf
cdd399e
8899cb7
6afe50d
1113d3b
aad682d
460fc37
fde392f
46b8ce6
e4cfcdc
63c513d
701a17d
9d36b5e
12e82dc
0ec2686
bb9881a
4ad1d93
94aff1e
0513b75
3ae45ff
6498ef7
739fede
35aee2f
93d9721
8b81c94
b851966
8917b82
87136a8
02666f7
b9adcba
61c85ff
9dfcb58
db3d4e3
d87b251
4e4b8b2
39cf680
d45dff0
6ba1c44
7a82f07
63f033b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,3 +48,14 @@ TEST_CASE("Task Object Lifecycle", "[TaskList][AddTask]") { | |
| REQUIRE(track_destruction.expired()); | ||
| } | ||
| } | ||
|
|
||
| TEST_CASE("TaskCollection timeout", "[TaskList][AddTask]") { | ||
| GIVEN("A TaskCollection") { | ||
| parthenon::TaskCollection tc; | ||
| parthenon::TaskRegion ®ion = tc.AddRegion(1); | ||
| region[0].AddTask(TaskID(0), []() { return TaskStatus::incomplete; }); | ||
| const std::size_t timeout_in_seconds = 4; | ||
| tc.Execute(timeout_in_seconds); | ||
| REQUIRE(true); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I missed this yesterday.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the task list timeout didn't work, Remember that when we compile with
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, right, thanks for clarifying. |
||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.