-
Notifications
You must be signed in to change notification settings - Fork 210
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
testing: remove nextQuery assertion #377
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me 👍 is there a tracking issue to try to reset state between tests runs, this can definitely start to make for hard to debug test suites.
@@ -176,7 +176,6 @@ describe('BigQuery', () => { | |||
filter: `labels.${GCLOUD_TESTS_PREFIX}`, | |||
}); | |||
assert(datasets[0] instanceof Dataset); | |||
assert.strictEqual(nextQuery, null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems reasonable to me; in a perfect world, I might try to have a beforeEach
that ensures that there's nothing populated in nextQuery
before running the test. Is there a tracking issue for this bug? (state between tests can really start to be a pain).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there is, @JustinBeckwith might know though?
Codecov Report
@@ Coverage Diff @@
## master #377 +/- ##
=======================================
Coverage 99.44% 99.44%
=======================================
Files 4 4
Lines 544 544
Branches 75 75
=======================================
Hits 541 541
Misses 2 2
Partials 1 1 Continue to review full report at Codecov.
|
Fixes #375
Since we refactored our strategy for dealing with lingering resources, sometimes
nextQuery
will be populated with a page of resources from a different test run.