Skip to content

Commit

Permalink
Overwrite scenario when new scenario handled for same configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufozgul committed Mar 21, 2024
1 parent cf47246 commit 1d84fda
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ actor ScenarioDecider {
///
/// - Parameter scenario: The ``ScenarioModel` to be added.
func addNewScenario(_ scenario: ScenarioModel) {
scenarios.removeAll(where: { $0.deviceId == scenario.deviceId && $0.mockDomain == scenario.mockDomain && $0.path == scenario.path })
scenarios.append(scenario)
}

Expand Down

0 comments on commit 1d84fda

Please sign in to comment.