diff --git a/Tests/GitHubGists.tests.ps1 b/Tests/GitHubGists.tests.ps1 index d26e483b..61c1053b 100644 --- a/Tests/GitHubGists.tests.ps1 +++ b/Tests/GitHubGists.tests.ps1 @@ -238,7 +238,7 @@ try } } - $since = (Get-Date -Date '01/01/2016') + $since = $gists.updated_At | Sort-Object | Select-Object -Last 1 $sinceGists = Get-GitHubGist -UserName $username -Since $since It 'Should have fewer results with using the since parameter' { $sinceGists.Count | Should -BeGreaterThan 0