fix test, run clippy

This commit is contained in:
Felix Ableitner 2020-12-10 00:55:14 +01:00
parent ec13759ca6
commit 5b34d2be6c
2 changed files with 4 additions and 0 deletions

View file

@ -3,6 +3,8 @@ name: default
steps:
- name: cargo test
# needed because it doesnt work as root, and drone clones as root without an easy way to change it
# https://github.com/emk/rust-musl-builder/issues/96
image: ekidd/rust-musl-builder:experimental-stable
user: root
environment:
@ -12,6 +14,7 @@ steps:
commands:
- cargo check --all
- cargo test --workspace --no-fail-fast
- cargo clippy
- mdbook build docs/
- name: run federation tests

View file

@ -265,6 +265,7 @@ mod tests {
private_key: None,
public_key: None,
last_refreshed_at: inserted_user.published,
deleted: false,
};
let read_user = User_::read(&conn, inserted_user.id).unwrap();