Skip to content

Commit ec07b58

Browse files
committed
test: python stability fixes
1 parent a9a71c9 commit ec07b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,11 +552,11 @@ async function assertValidator(actualValidate, expectedValidate, values) {
552552
export async function getLatestURLWithToken() {
553553
let latestURLWithToken;
554554
const start = Date.now();
555-
while (latestURLWithToken === undefined) {
555+
while (!latestURLWithToken) {
556556
const response = await fetch(`${TEST_APPLICATION_SERVER_BASE_URL}/token`);
557557
const respBody = await response.json();
558558
latestURLWithToken = respBody.latestURLWithToken;
559-
if (latestURLWithToken === undefined || latestURLWithToken === "") {
559+
if (!latestURLWithToken) {
560560
if (Date.now() - start > 10000) {
561561
throw new Error("Timeout waiting for latestURLWithToken");
562562
}

0 commit comments

Comments
 (0)