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: steps:
- name: cargo test - 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 image: ekidd/rust-musl-builder:experimental-stable
user: root user: root
environment: environment:
@ -12,6 +14,7 @@ steps:
commands: commands:
- cargo check --all - cargo check --all
- cargo test --workspace --no-fail-fast - cargo test --workspace --no-fail-fast
- cargo clippy
- mdbook build docs/ - mdbook build docs/
- name: run federation tests - name: run federation tests

View File

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