Skip to content

Commit

Permalink
change color
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo committed Jan 30, 2025
1 parent ec85120 commit 6fb8132
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/pit/its/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ function log(...args) {
function out(...args) {
process.stderr.write(`\x1b[2m\x1b[196m${args}\x1b[0m`);
}
function green(...args) {
process.stderr.write(`\x1b[2m\x1b[0;32m${args}\x1b[0m`);
function ok(...args) {
process.stderr.write(`\x1b[2m\x1b[92m${args}\x1b[0m`);
}

function warn(...args) {
process.stderr.write(`\x1b[2m\x1b[91m${args}\x1b[0m`);
}
Expand Down Expand Up @@ -108,7 +107,7 @@ async function waitForServerReady(page, url, options = {}) {
// Check if the response status is not 503
if (response && response.status() < 400) {
await page.waitForTimeout(1500);
green(` ✓ Attempt ${attempt} Server is ready and returned a valid response. ${response.status()}\n`);
ok(` ✓ Attempt ${attempt} Server is ready and returned a valid response. ${response.status()}\n`);
return response;
} else {
out(` ⏲ Attempt ${attempt} Server is not ready yet. ${response.status()}\n`);
Expand Down

0 comments on commit 6fb8132

Please sign in to comment.