Skip to content

Commit 1d1d75a

Browse files
authored
Update deploy-resources.js
1 parent dd892eb commit 1d1d75a

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

e2e-tests/fixtures/deploy-resources.js

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,22 @@ async function deployResources(resources) {
102102
stdio: "pipe",
103103
}),
104104
);
105-
await waitForChildProcess(
106-
cp.exec(`drasi wait ${source.kind} ${source.name} -t 180`, {
107-
encoding: "utf-8",
108-
}),
109-
source.name,
110-
);
105+
try {
106+
await waitForChildProcess(
107+
cp.exec(`drasi wait ${source.kind} ${source.name} -t 60`, {
108+
encoding: "utf-8",
109+
}),
110+
source.name,
111+
);
112+
}
113+
catch {
114+
await waitForChildProcess(
115+
cp.exec(`drasi wait ${source.kind} ${source.name} -t 60`, {
116+
encoding: "utf-8",
117+
}),
118+
source.name,
119+
);
120+
}
111121
}
112122

113123
for (let container of containers) {

0 commit comments

Comments
 (0)