From fb1bf0ca9fa332e93b7c1a4ac916a44a319da174 Mon Sep 17 00:00:00 2001 From: Marcelo Costa Date: Wed, 4 Aug 2021 14:18:43 -0500 Subject: [PATCH] removing legacy code. The selenium session count is being tracked in the hooks script --- suites/portal/homepageTest.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/suites/portal/homepageTest.js b/suites/portal/homepageTest.js index 3d051abe8..391f551df 100644 --- a/suites/portal/homepageTest.js +++ b/suites/portal/homepageTest.js @@ -3,25 +3,6 @@ const fetch = require('node-fetch'); Feature('Homepage').retry(2); Scenario('login @portal', async ({ home }) => { - let sessionCount = 0; - if (process.env.RUNNING_IN_PROD_TIER === 'true') { - console.log('INFO: Running in prod-tier environment. Ignore selenium-hub metrics.'); - } else { - const resp = await fetch('http://selenium-hub:4444/status'); - const respJson = await resp.json(); - - const { nodes } = respJson.value; - if (nodes.length > 0) { - nodes.forEach((node) => { - node.slots.forEach((slot) => { - if (slot.session) { - sessionCount += 1; - } - }); - }); - } - } - console.log(`*** COUNT OF SELENIUM SESSIONS: ${sessionCount} ***`); home.do.goToHomepage(); home.complete.login(); home.ask.seeDetails();