Skip to content

Commit

Permalink
test: fix buggy clippy warnings in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
loyd committed May 14, 2023
1 parent f9f6716 commit 3ac194e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions tests/test_compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,22 @@ async fn check(client: Client) {
#[common::named]
#[tokio::test]
async fn none() {
check(common::prepare_database!().with_compression(Compression::None)).await;
let client = common::prepare_database!().with_compression(Compression::None);
check(client).await;
}

#[cfg(feature = "lz4")]
#[common::named]
#[tokio::test]
async fn lz4() {
check(common::prepare_database!().with_compression(Compression::Lz4)).await;
let client = common::prepare_database!().with_compression(Compression::Lz4);
check(client).await;
}

#[cfg(feature = "lz4")]
#[common::named]
#[tokio::test]
async fn lz4_hc() {
check(common::prepare_database!().with_compression(Compression::Lz4Hc(4))).await;
let client = common::prepare_database!().with_compression(Compression::Lz4Hc(4));
check(client).await;
}
6 changes: 4 additions & 2 deletions tests/test_cursor_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ mod common;
#[common::named]
#[tokio::test]
async fn deferred() {
max_execution_time(common::prepare_database!(), false).await;
let client = common::prepare_database!();
max_execution_time(client, false).await;
}

#[common::named]
#[tokio::test]
async fn wait_end_of_query() {
max_execution_time(common::prepare_database!(), true).await;
let client = common::prepare_database!();
max_execution_time(client, true).await;
}

async fn max_execution_time(mut client: Client, wait_end_of_query: bool) {
Expand Down

0 comments on commit 3ac194e

Please sign in to comment.