diff --git a/core/src/local/store.rs b/core/src/local/store.rs index b960af2..bd129e1 100644 --- a/core/src/local/store.rs +++ b/core/src/local/store.rs @@ -1498,7 +1498,8 @@ mod tests { ids(&list(&conn, json!({"view": "trash"}))), vec![trashed.id.as_str()] ); - let mut all = ids(&list(&conn, json!({"view": "all"}))); + let everything = list(&conn, json!({"view": "all"})); + let mut all = ids(&everything); all.sort(); let mut expected = vec![kept.id.as_str(), archived.id.as_str()]; expected.sort(); diff --git a/tests/test_integration.py b/tests/test_integration.py index 687c4c1..03b6d55 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -1674,6 +1674,7 @@ async def test_owner_and_recipient_each_pin_archive_and_order_their_own(app_clie async def test_search_and_tags_look_through_the_archive_but_not_the_trash(app_client, db): + await _admin_with_invite(app_client) kept = await _owners_note(app_client, "ferry times #travel") archived = await _owners_note(app_client, "ferry booked last summer #travel") trashed = await _owners_note(app_client, "ferry refund #travel")