mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
test: fix flaky lifecycle test (#7093)
This commit is contained in:
parent
c14fc54e33
commit
45eff83a8a
@ -98,7 +98,8 @@ const uncompleteFeature = async (featureName: string, expectedCode = 200) => {
|
|||||||
function reachedStage(feature: string, stage: StageName) {
|
function reachedStage(feature: string, stage: StageName) {
|
||||||
return new Promise((resolve) =>
|
return new Promise((resolve) =>
|
||||||
featureLifecycleService.on(STAGE_ENTERED, (event) => {
|
featureLifecycleService.on(STAGE_ENTERED, (event) => {
|
||||||
if (event.stage === stage) resolve(stage);
|
if (event.stage === stage && event.feature === feature)
|
||||||
|
resolve(stage);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user