Skip to content

Commit e640fbb

Browse files
authored
Get Serial Scenarios from the front of the queue in runner::Basic (#146)
1 parent a0c12cd commit e640fbb

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ All user visible changes to `cucumber` crate will be documented in this file. Th
66

77

88

9+
## [0.10.1] · 2021-10-??
10+
[0.10.1]: /../../tree/v0.10.1
11+
12+
[Diff](/../../compare/v0.10.0...v0.10.1) | [Milestone](/../../milestone/4)
13+
14+
### Fixed
15+
16+
- Console output hanging because of executing wrong `Concurrent` `Scenario`s. ([#146])
17+
18+
[#146]: /../../pull/146
19+
20+
21+
22+
923
## [0.10.0] · 2021-10-26
1024
[0.10.0]: /../../tree/v0.10.0
1125

src/runner/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ impl Features {
12171217
let mut scenarios = self.scenarios.lock().await;
12181218
scenarios
12191219
.get_mut(&ScenarioType::Serial)
1220-
.and_then(|s| s.pop().map(|s| vec![s]))
1220+
.and_then(|s| (!s.is_empty()).then(|| vec![s.remove(0)]))
12211221
.or_else(|| {
12221222
scenarios.get_mut(&ScenarioType::Concurrent).and_then(|s| {
12231223
(!s.is_empty()).then(|| {

0 commit comments

Comments
 (0)