Skip to content

Fix gist test validating the since parameter #321

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

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

HowardWolosky
Copy link
Contributor

Description

octocat recently updated all of its gists, starting on 2/24/2021.
The test previously would query for gists that were updated since 2016, but as of 2/24/2021, that included all of them.

The test has been made more robust by choosing the most recent date of all the gists and then requerying, which should hopefully now always guarantee that we'll get a reduced set of gists, unless all of the gists are suddenly updated in the future at the exact same second.

Issues Fixed

n/a

References

gist reference

Checklist

  • You actually ran the code that you just wrote, especially if you did just "one last quick change".
  • Comment-based help added/updated, including examples.
  • Static analysis is reporting back clean.
  • New/changed code adheres to our coding guidelines.
  • Formatters were created for any new types being added.
  • New/changed code continues to support the pipeline.
  • Changes to the manifest file follow the manifest guidance.
  • Unit tests were added/updated and are all passing. See testing guidelines. This includes making sure that all pipeline input variations have been covered.
  • Relevant usage examples have been added/updated in USAGE.md.
  • If desired, ensure your name is added to our Contributors list

octocat recently updated all of its gists, starting on 2/24/2021.
The test previously would query for gists that were updated since 2016,
but as of 2/24/2021, that included all of them.

The test has been made more robust by choosing the most recent date of
all the gists and then requerying, which should hopefully now always
guarantee that we'll get a reduced set of gists, unless all of the gists
are suddenly updated in the future at the exact same second.
@HowardWolosky HowardWolosky added tests A change related to the Pester tests for the module. api-gists Work to complete the API's defined here: https://developer.github.com/v3/gists/ labels Mar 25, 2021
@HowardWolosky HowardWolosky merged commit 0023635 into microsoft:master Mar 25, 2021
@HowardWolosky HowardWolosky deleted the gistSinceTest branch March 25, 2021 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-gists Work to complete the API's defined here: https://developer.github.com/v3/gists/ tests A change related to the Pester tests for the module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant