diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-04 19:24:21 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-04 19:24:21 -0800 |
commit | eccdd4577a54b230460de6733ed7b003b6f8f182 (patch) | |
tree | bd29d08b715de4b1a790f80e3c08f335675dbf79 /rust/tests | |
parent | 6eeead67f1d9af4ff2fc3c6c1188bc372e7d05a0 (diff) | |
download | fatcat-eccdd4577a54b230460de6733ed7b003b6f8f182.tar.gz fatcat-eccdd4577a54b230460de6733ed7b003b6f8f182.zip |
add superuser role/flag
Diffstat (limited to 'rust/tests')
-rw-r--r-- | rust/tests/test_auth.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/tests/test_auth.rs b/rust/tests/test_auth.rs index b06f3e7b..5ccbb6cb 100644 --- a/rust/tests/test_auth.rs +++ b/rust/tests/test_auth.rs @@ -35,13 +35,13 @@ fn test_auth_db() { let token = c.create_token(editor_id, None).unwrap(); // verify token - let editor_row = c.parse_macaroon_token(&conn, &token).unwrap(); + let editor_row = c.parse_macaroon_token(&conn, &token, None).unwrap(); assert_eq!(editor_row.id, editor_id.to_uuid()); // revoke token revoke_tokens(&conn, editor_id).unwrap(); // verification should fail - // XXX: one-second slop breads this - //assert!(c.parse_macaroon_token(&conn, &token).is_err()); + // XXX: one-second slop breaks this + //assert!(c.parse_macaroon_token(&conn, &token, None).is_err()); } |