Skip to content

Commit 6d129e3

Browse files
committed
test-store, tests: Allow holding the test lock across await
We need to eventually fix that, but that requires quite a bit of change. For now, we suppress the clippy warning.
1 parent 5f126f9 commit 6d129e3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

store/test-store/src/store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ where
123123
}
124124

125125
/// Run a test with a connection into the primary database, not a full store
126+
#[allow(clippy::await_holding_lock)]
126127
pub async fn run_test_with_conn<F>(test: F)
127128
where
128129
F: AsyncFnOnce(&mut AsyncPgConnection),

tests/src/fixture/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ fn test_logger(test_name: &str) -> Logger {
360360
graph::log::logger(true).new(o!("test" => test_name.to_string()))
361361
}
362362

363+
#[allow(clippy::await_holding_lock)]
363364
pub async fn stores(test_name: &str, store_config_path: &str) -> Stores {
364365
let _mutex_guard = STORE_MUTEX.lock().unwrap();
365366

0 commit comments

Comments
 (0)