Skip to content

Commit

Permalink
Add logging statement to debug GitHub Actions in model11.spec.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayik committed May 22, 2024
1 parent bb88704 commit b856bbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/model11.spec.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ async function waitForLogMessage(page, browserName, modelIndex) {
const logMessagePromise = new Promise((resolve, reject) => {
page.on('console', (msg) => {
const msgText = msg.text();
// log all messages to help debug github actions
console.log(msgText);
if (msgText.includes('Processing the whole brain volume in tfjs for multi-class output mask took :')) {
// Parse the time in milliseconds
const time = parseFloat(msgText.split('took : ')[1].split(' Seconds')[0]) * 1000;
Expand Down

0 comments on commit b856bbc

Please sign in to comment.