question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spanner: CreateInstanceTest is flaky

See original GitHub issue
[xUnit.net 00:04:01.76]     CreateInstanceTest.TestCreateInstance [FAIL]
Waiting for the operation to finish.
  X CreateInstanceTest.TestCreateInstance [8ms]
  Error Message:
   Assert.Equal() Failure
Expected: AlreadyExists
Actual:   Unavailable
  Stack Trace:
     at CreateInstanceTest.TestCreateInstance() in /tmpfs/src/github/dotnet-docs-samples/spanner/api/Spanner.Samples.Tests/CreateInstanceTest.cs:line 34

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
olavloitecommented, Jul 14, 2021

we can not do it in test because we are pulling operation until completed(PollUntilCompleted()) in sample.

@laljikanjareeya I think we can safely retry the entire test call in the test method itself, without having to change the sample. See #1337

0reactions
zoercaicommented, Jul 14, 2021

🚨 friendly triager ping @skuruppu @laljikanjareeya

Read more comments on GitHub >

github_iconTop Results From Across the Web

spanner/spanner_snippets: TestBackupSample failed #1339
The setup of this test is the same as the tests for spanner_snippets, but it uses a different database name (an extra 'l'...
Read more >
How to Fix Flaky Tests - Semaphore CI
A test that intermittently fails for no apparent reason — or works in your local machine and fails with continuous integration — is...
Read more >
Solving Flaky React Unit Tests
Precaution 1: Try to run your tests in an isolated environment. While debugging the flaky tests, we found that some tests were dependent...
Read more >
How to reduce flaky test failures
Flaky tests, also known as flappers, fail to produce accurate and consistent results. These tests may be unreliable because of newly-written ...
Read more >
Test Flakiness - Methods for identifying and dealing with flaky ...
A flaky test is a test that both passes and fails periodically without any code changes. Flaky tests are definitely annoying but they...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found