Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
16fcf27f
Commit
16fcf27f
authored
5 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
Back off the max value from this strategy a bit
parent
11e0cff4
No related branches found
Branches containing commit
No related tags found
1 merge request
!68
Add stat_shares interface
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/_zkapauthorizer/tests/strategies.py
+5
-2
5 additions, 2 deletions
src/_zkapauthorizer/tests/strategies.py
with
5 additions
and
2 deletions
src/_zkapauthorizer/tests/strategies.py
+
5
−
2
View file @
16fcf27f
...
...
@@ -565,8 +565,11 @@ def posix_safe_datetimes():
# represent a timestamp with microsecond precision in a floating point
# number, which we do with any POSIX timestamp-like API (eg
# twisted.internet.task.Clock). So don't go far enough into the
# future.
max_value
=
datetime
(
2200
,
1
,
1
),
# future. Furthermore, once we don't fit into an unsigned 4 byte
# integers, we can't round-trip through all the things that expect a
# time_t. Stay back from the absolute top to give tests a little
# space to advance time, too.
max_value
=
datetime
.
utcfromtimestamp
(
2
**
31
),
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment