mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-04 00:30:49 +00:00
Add extra delay after state engine integration tests
This ensures target state has settled (since it seems that the 'applied' status that's reported isn't 100% accurate and the actual Engine state may lag behind slightly) Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
parent
7f32141958
commit
95f3e13d50
@ -49,6 +49,8 @@ const setTargetState = async (
|
|||||||
while (true) {
|
while (true) {
|
||||||
const status = await getStatus();
|
const status = await getStatus();
|
||||||
if (status.appState === 'applied') {
|
if (status.appState === 'applied') {
|
||||||
|
// Wait a tiny bit more after applied for state to settle
|
||||||
|
await delay(1000);
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
resolve(true);
|
resolve(true);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user