firebase-tools icon indicating copy to clipboard operation
firebase-tools copied to clipboard

Flaky unit test for storage rules

Open vojdan opened this issue 2 years ago • 1 comments

[REQUIRED] Environment info

firebase-tools: 11.4.2 node --version: v16.16.0

Platform: MacOS Monterey 12.5, MacBook Pro Apple M1 Max, 64 GB

[REQUIRED] Test case

Repro: https://github.com/vojdan/firebase-memory-leak

Look at Issue 1 in README.md https://github.com/vojdan/firebase-memory-leak#issue-1---flaky-tests

[REQUIRED] Steps to reproduce

GIF included in README

https://github.com/vojdan/firebase-memory-leak#issue-1---flaky-tests

Start firebase emulators (in terminal 1)

npm run emulators:test

Run tests in watch mode (in terminal 2)

npm run test:watch

[REQUIRED] Expected behavior

Tests always pass.

[REQUIRED] Actual behavior

Tests pass/fail randomly. Re-run tests to observe by pressing Enter in terminal #2 after test run finishes.

GIF included in README

https://github.com/vojdan/firebase-memory-leak#issue-1---flaky-tests

vojdan avatar Aug 08 '22 03:08 vojdan

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

google-oss-bot avatar Aug 08 '22 03:08 google-oss-bot