Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Fix logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarbettini committed Sep 7, 2016
1 parent e6da5d7 commit 9df9727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ public async Task Searching_accounts_with_modified_passwords(TestClientProvider

// Get all accounts that modified their passwords this year
var accounts = await application.GetAccounts()
.Where(a => a.PasswordModifiedAt <= new DateTimeOffset(DateTimeOffset.Now.Year, 1, 1, 0, 0, 0, TimeSpan.Zero))
.Where(a => a.PasswordModifiedAt > new DateTimeOffset(DateTimeOffset.Now.Year, 1, 1, 0, 0, 0, TimeSpan.Zero))
.ToListAsync();

accounts.ShouldContain(a => a.Email == "[email protected]");
Expand Down
2 changes: 1 addition & 1 deletion test/Stormpath.SDK.Tests.Integration/Sync/Account_tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ public void Searching_accounts_with_modified_passwords(TestClientProvider client

// Get all accounts that modified their passwords this year
var accounts = application.GetAccounts()
.Where(a => a.PasswordModifiedAt <= new DateTimeOffset(DateTimeOffset.Now.Year, 1, 1, 0, 0, 0, TimeSpan.Zero))
.Where(a => a.PasswordModifiedAt > new DateTimeOffset(DateTimeOffset.Now.Year, 1, 1, 0, 0, 0, TimeSpan.Zero))
.Synchronously()
.ToList();

Expand Down

0 comments on commit 9df9727

Please sign in to comment.