-
Notifications
You must be signed in to change notification settings - Fork 79
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
Issue 344 tests #385
Merged
Merged
Issue 344 tests #385
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
63ca7da
test-checkInterrupts.R check #244 test timing
zozlak 5792b00
test-checkInterrupts.R: check if request has been cancelled sercer side
zozlak afa8616
test-checkInterrupts.R: restore the "query < 1 second" test
zozlak 89047c5
Merge branch 'main' into issue-344-tests
krlmlr 8c4acaf
Can't update snapshots in foreign pull requests
krlmlr 8eb097b
Update snapshots also for dev
krlmlr a8db64d
Merge branch 'main' into issue-344-tests
krlmlr fc1d35c
Try to shorten the checked time to account for different timer resolu…
krlmlr a3a29d1
Merge branch 'main' into issue-344-tests
krlmlr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The original test is good. Can you please create a new test?
Should the test condition be
expect_lt(time[["elapsed"]], 0.9)
then?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.
If we claim this is a test for #244, it should definitely test a query longer than 1 second because the #244 was caused by a fact that the structure taken by the
select()
requires different reinitialization under linux and windows, after theselect()
timeout is reached (and we hardcode the timeout to 1 second).Of course I can also add another test with query shorter than 1 second, just then we shouldn't claim it tests #244.
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.
Maybe the reference to #244 is wrong, I'd need to take a closer look. Either way, can you please keep the original test?
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.
The new test is failing, btw.
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.
Sure, restored the old removing the reference to #244 and added the > 1 second one with the reference to #244 and fixed check condition.
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.
Hm, the test CI failed on the "update snapshots" step - I have no idea what does it mean.
When I run tests locally all pass but
(test-checkInterrupts.R:50:3): check_interrupts = TRUE interrupts immediately (#336)
(which means the query isn't cancelled on the server side when the interrupt breaksdbGetQuery()
).