summaryrefslogtreecommitdiffstats
path: root/rust/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-08 15:18:36 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-08 15:18:36 -0800
commitfee4f9e8957f7f51acb320ec880de166377807f7 (patch)
treea59cf33ef129a84f73fe8a0e0313f572bbb9f418 /rust/tests
parentbb4a5e47bae054ad9abe500f1a81d30db4e65306 (diff)
downloadfatcat-fee4f9e8957f7f51acb320ec880de166377807f7.tar.gz
fatcat-fee4f9e8957f7f51acb320ec880de166377807f7.zip
iterate on macaroon time caveat names
Diffstat (limited to 'rust/tests')
-rw-r--r--rust/tests/test_auth.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/tests/test_auth.rs b/rust/tests/test_auth.rs
index 5ccbb6cb..412b67e8 100644
--- a/rust/tests/test_auth.rs
+++ b/rust/tests/test_auth.rs
@@ -18,8 +18,7 @@ fn test_macaroons() {
c.create_token(editor_id, None).unwrap();
// create token w/ expiration
- let tomorrow = Utc::now() + chrono::Duration::days(1);
- c.create_token(editor_id, Some(tomorrow)).unwrap();
+ c.create_token(editor_id, Some(chrono::Duration::days(1))).unwrap();
}
#[test]