# Checks with async IIFE reporting success incorrectly

> Changes related to additional security measures for Browser checks changed the default behavior of the runner.

Source: https://www.checklyhq.com/blog/post-mortem-checks-with-async-iife-reporting-success-incorrectly/

---

[Blog](https://www.checklyhq.com/blog/)

# Post mortem: checks with async IIFE reporting success incorrectly

[Umut Uzgur](https://www.checklyhq.com/blog/author/umut/)

June 15, 2020 · Updated January 12, 2024

Between 05.06.2020-12.06.2020, checks using the async IIFE syntax had runs marked as passed when, in reality, they were not correctly executed.

**Impact**

We detected 18 active checks which were affected.

**Root Causes**

Changes related to additional security measures for Browser checks changed the default behavior of the runner. These changes affected the way we handle promises which are not awaited or returned.

**Resolution**

Instead of exiting the process when the execution block was finished, we let the node process exit after it executed all promises.

**Detection**

A customer contacted us after their checks didn't detect an outage they were having.

### What Are We Doing About This?

- We pushed the fix immediately on Friday after it was reported.
- We added fixtures to our test suite with async IIFE syntax and added checks to staging and production suites.
- We set up paging capabilities to these checks in case anything avoids our unit tests.

## Timeline

05.06.2020

- 12:00 security changes were rolled out to half of the regions

08.06.2020

- 11:00 security changes were rolled out to all regions

12.06.2020

- 15:03 We got informed by a customer that their tests were passing without printing certain logs
- 15:13 We found the root cause of the issue and offered the customer a workaround
- 15:30 We implemented a quick fix for the issue
- 18:30 After talking to the customer, we decided that the issue had to be resolved ASAP
- 19:00 We started testing the fix
- 19:20 We pushed the fix to production and started observing the stats
- 20:00 We declared the incident resolved

[Umut Uzgur Senior Engineering Team Lead](https://www.checklyhq.com/blog/author/umut/)

Share on social

## Related Articles

[How we monitor Checkly's API and Web App (updated) June 18, 2020](https://www.checklyhq.com/blog/how-we-monitor-checkly/)[Active monitoring with Playwright on Checkly 🎭 September 23, 2020](https://www.checklyhq.com/blog/we-now-support-playwright/)[Launching Performance and Error Tracing and new Vercel integration October 26, 2021](https://www.checklyhq.com/blog/launching-performance-and-error-tracing-new-vercel-integration/)[GitHub Browser check synchronization goes into public beta August 11, 2022](https://www.checklyhq.com/blog/github-browser-check-synchronization-goes-into-public-beta/)[Frontend Synthetic Monitoring: What is it, Types and Use Cases January 5, 2024](https://www.checklyhq.com/blog/frontend-synthetic-monitoring/)
