Skip to content
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

BS: Improve unit test for recentness of revocation #2663

Merged
merged 1 commit into from
May 10, 2019

Conversation

lukedirtwalker
Copy link
Collaborator

@lukedirtwalker lukedirtwalker commented May 10, 2019

ShouldBeBetween doesn't include the bound.
In case the revocation was issued the second before the test creates the now value,
the test would fail on the lower bound.
(see https://buildkite.com/scionproto/scionproto-nightly/builds/228#e8f2c1cb-6d69-4852-89fa-d88953df795b)

Fix the check: The revocation can either have

  • A timestamp with a second value 1 less than now, or
  • A timestamp with the same second value.

This change is Reviewable

ShouldBeBetween doesn't include the bound.
In case the revocation was issued the second before the test creates the now value,
the test would fail on the lower bound.
(see https://buildkite.com/scionproto/scionproto-nightly/builds/228#e8f2c1cb-6d69-4852-89fa-d88953df795b)

Fix the check: The revocation can either have
- A timestamp with a second value 1 less than now, or
- A timestamp with the same second value.
@lukedirtwalker lukedirtwalker requested a review from oncilla May 10, 2019 06:03
Copy link
Contributor

@oncilla oncilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@lukedirtwalker lukedirtwalker merged commit 462ec33 into scionproto:master May 10, 2019
@lukedirtwalker lukedirtwalker deleted the pubBSTestStable branch May 10, 2019 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants