]> Untitled Git - lemmy.git/commitdiff
fix test, run clippy
authorFelix Ableitner <me@nutomic.com>
Wed, 9 Dec 2020 23:55:14 +0000 (00:55 +0100)
committerFelix Ableitner <me@nutomic.com>
Wed, 9 Dec 2020 23:55:14 +0000 (00:55 +0100)
.drone.yml
lemmy_db/src/user.rs

index 79b33c8c6d6982a497905af69ac53ac42b33dd41..45886aa2ba8a5aa97eb15ee1f0af1765a0861e2a 100644 (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
index 2c4c67ea2f53f51364d620ffde60100da4e1f48f..0210c3b0b1d95d658d878a94969d03cd0390bedb 100644 (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();