Skip to content

Commit

Permalink
Get Serial Scenarios from the front of the queue in `runner::Basi…
Browse files Browse the repository at this point in the history
…c` (#146)
  • Loading branch information
ilslv authored Oct 29, 2021
1 parent a0c12cd commit e640fbb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ All user visible changes to `cucumber` crate will be documented in this file. Th



## [0.10.1] · 2021-10-??
[0.10.1]: /../../tree/v0.10.1

[Diff](/../../compare/v0.10.0...v0.10.1) | [Milestone](/../../milestone/4)

### Fixed

- Console output hanging because of executing wrong `Concurrent` `Scenario`s. ([#146])

[#146]: /../../pull/146




## [0.10.0] · 2021-10-26
[0.10.0]: /../../tree/v0.10.0

Expand Down
2 changes: 1 addition & 1 deletion src/runner/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ impl Features {
let mut scenarios = self.scenarios.lock().await;
scenarios
.get_mut(&ScenarioType::Serial)
.and_then(|s| s.pop().map(|s| vec![s]))
.and_then(|s| (!s.is_empty()).then(|| vec![s.remove(0)]))
.or_else(|| {
scenarios.get_mut(&ScenarioType::Concurrent).and_then(|s| {
(!s.is_empty()).then(|| {
Expand Down

0 comments on commit e640fbb

Please sign in to comment.