change: check clippy for tests in CI

This commit is contained in:
Arne Beer 2021-10-29 02:50:38 +02:00
parent 36ecb5efb6
commit 49f6228dcd
No known key found for this signature in database
GPG key ID: CC9408F679023B65
2 changed files with 2 additions and 2 deletions

View file

@ -100,4 +100,4 @@ jobs:
if: ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
with:
command: clippy
args: -- -D warnings
args: --tests -- -D warnings

View file

@ -19,7 +19,7 @@ async fn test_normal_remove() -> Result<()> {
// 3 -> paused
// 4 -> queued
// 5 -> stashed
for command in vec!["failing", "ls", "sleep 60", "sleep 60", "ls", "ls"] {
for command in &["failing", "ls", "sleep 60", "sleep 60", "ls", "ls"] {
assert_success(add_task(shared, command, false).await?);
}
// Wait for task2 to start. This implies task[0,1] being finished.