Skip to content

Commit 98e3198

Browse files
committed
test: python stability fixes
1 parent 7b430a0 commit 98e3198

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
@@ -550,11 +550,11 @@ async function assertValidator(actualValidate, expectedValidate, values) {
550550
export async function getLatestURLWithToken() {
551551
let latestURLWithToken;
552552
const start = Date.now();
553-
while (latestURLWithToken === undefined) {
553+
while (!latestURLWithToken) {
554554
const response = await fetch(`${TEST_APPLICATION_SERVER_BASE_URL}/token`);
555555
const respBody = await response.json();
556556
latestURLWithToken = respBody.latestURLWithToken;
557-
if (latestURLWithToken === undefined || latestURLWithToken === "") {
557+
if (!latestURLWithToken) {
558558
if (Date.now() - start > 10000) {
559559
throw new Error("Timeout waiting for latestURLWithToken");
560560
}

0 commit comments

Comments
 (0)