close the browser after getBrowser()

This commit is contained in:
Ali Razmjoo 2023-09-23 13:11:02 +02:00
parent 499429858c
commit caa8dd8ec2

View file

@ -221,6 +221,9 @@ class RealBrowserMonitorType extends MonitorType {
await context.close();
// Close the browser instance
await browser.close();
if (res.status() >= 200 && res.status() < 400) {
heartbeat.status = UP;
heartbeat.msg = res.status();