-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mocked time() so that unit tests pass reliably
test_new_pcp_error_response() was written in such a way that the test could assert just because the second call to time() returned a different value. The test shouldn't have been calling time() it should have been checking that the original value returned by time() was used. Signed-off-by: Tobi Wulff <[email protected]>
- Loading branch information
Greig Hamilton
authored and
Tobi Wulff
committed
Sep 6, 2016
1 parent
24e9f3d
commit 10954ee
Showing
2 changed files
with
24 additions
and
3 deletions.
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
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