summaryrefslogtreecommitdiffstats
path: root/rust/tests/test_refs.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-14 17:09:50 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-14 17:09:50 -0700
commit822df2600ed7463ad23640559bcc51ecf9908456 (patch)
tree499ff34e5c50de9733cc1a9d488350328ab288e2 /rust/tests/test_refs.rs
parent43ebd22582c33e95479572c213657a781e1eca3f (diff)
downloadfatcat-822df2600ed7463ad23640559bcc51ecf9908456.tar.gz
fatcat-822df2600ed7463ad23640559bcc51ecf9908456.zip
rust impl endpoint changes
Diffstat (limited to 'rust/tests/test_refs.rs')
-rw-r--r--rust/tests/test_refs.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/rust/tests/test_refs.rs b/rust/tests/test_refs.rs
index 20dafe04..28dfd6b8 100644
--- a/rust/tests/test_refs.rs
+++ b/rust/tests/test_refs.rs
@@ -17,8 +17,7 @@ fn test_refs_blob() {
let conn = server.db_pool.get().expect("db_pool error");
let editor_id = FatcatId::from_str(helpers::TEST_ADMIN_EDITOR_ID).unwrap();
let editgroup_id = helpers::quick_editgroup(&conn);
- let edit_context =
- make_edit_context(&conn, editor_id, Some(editgroup_id), false, None, None).unwrap();
+ let edit_context = make_edit_context(editor_id, editgroup_id, false).unwrap();
// this release entity should be unchanged after being inserted/fetched
let mut r1 = ReleaseEntity::new(ReleaseExtIds::new());
@@ -154,8 +153,7 @@ fn test_refs_blob() {
// update r1 with new target_idents (r3); SHA1 row still shouldn't change
accept_editgroup(&conn, editgroup_id).unwrap();
let editgroup_id = helpers::quick_editgroup(&conn);
- let edit_context =
- make_edit_context(&conn, editor_id, Some(editgroup_id), false, None, None).unwrap();
+ let edit_context = make_edit_context(editor_id, editgroup_id, false).unwrap();
let _edit4 = r3b
.db_update(&conn, &edit_context, edit1.ident_id.into())