Skip to content

Commit feda92c

Browse files
committed
Merge branch 'dev' into cameron/LOOP-4596-scenario-organization
2 parents 9701d18 + d65a48a commit feda92c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Loop/Managers/TestingScenariosManager.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,12 @@ extension TestingScenariosManagerRequirements {
234234
}
235235
}
236236

237-
instance.injectedActions.forEach { [testingCGMManager, testingPumpManager] action in
238-
testingCGMManager?.inject(action: action)
239-
testingPumpManager?.inject(action: action)
237+
instance.deviceActions.forEach { [testingCGMManager, testingPumpManager] action in
238+
if testingCGMManager?.managerIdentifier == action.managerIdentifier {
239+
testingCGMManager?.trigger(action: action)
240+
} else if testingPumpManager?.managerIdentifier == action.managerIdentifier {
241+
testingPumpManager?.trigger(action: action)
242+
}
240243
}
241244
}
242245

0 commit comments

Comments
 (0)