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

add flaky tests for react + flask #619

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

add flaky tests for react + flask #619

wants to merge 5 commits into from

Conversation

ndmanvar
Copy link
Collaborator

@ndmanvar ndmanvar commented Nov 4, 2024

No description provided.

@ndmanvar ndmanvar requested a review from a team as a code owner November 4, 2024 20:23
Copy link

codecov bot commented Nov 4, 2024

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
77 1 76 0
View the top 1 failed tests by shortest run time
test/test_flaky.py::FlakyTestExample::test_flaky_function
Stack Traces | 0.46s run time
self = <src.test.test_flaky.FlakyTestExample testMethod=test_flaky_function>

    def test_flaky_function(self):
        # Simulating a function that sometimes fails
        result = random.choice([True, True, False, False])
    
        # Adding delay to simulate randomness further
        time.sleep(random.uniform(0.1, 0.5))
    
>       self.assertTrue(result, "The result was not True, indicating a flaky behavior")
E       AssertionError: False is not true : The result was not True, indicating a flaky behavior

test/test_flaky.py:13: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
Got feedback? Let us know on Github

@sentry-demos sentry-demos deleted a comment from vercel bot Nov 7, 2024
Copy link

vercel bot commented Nov 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
empower ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 6:09pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant