Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky unit test #1799

Closed
cpswan opened this issue Feb 14, 2024 · 1 comment
Closed

Flaky unit test #1799

cpswan opened this issue Feb 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@cpswan
Copy link
Member

cpswan commented Feb 14, 2024

Describe the bug

Over the past couple of days I've seen frequent failures of this test:

❌ test/enroll_verb_test.dart: A group of tests related to enrollment request expiry A test to verify expired enrollment cannot be approved (failed)
  INFO|2024-02-14 09:49:51.858219|HiveBase|commit_log_5a1fff547b9dafdc95c1938a41e8951bded8a595db3a50ddf0183a67a8a05f6a initialized successfully 
  
  INFO|2024-02-14 09:49:51.859931|HiveBase|5a1fff547b9dafdc95c1938a41e8951bded8a595db3a50ddf0183a67a8a05f6a initialized successfully 
  
  Expected: <true>
    Actual: <false>
  
  package:matcher                   expect
  test/enroll_verb_test.dart 540:7  main.<fn>.<fn>
SEVERE|2024-02-14 09:49:51.908130|NotificationUtil|exception while storing notification : LateInitializationError: Field '_boxName@833204826' has not been initialized. 

Steps to reproduce

  1. First I create a PR
  2. Then automated tests run
  3. And then far too frequently the unit tests are failing

Expected behavior

Unit tests are a reliable indicator of whether new code is good.

@purnimavenkatasubbu
Copy link
Member

purnimavenkatasubbu commented Mar 18, 2024

This issue has been fixed as part of the commit

PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants