Skip to content

Commit b7a8670

Browse files
committed
Fix postgres test race condition
1 parent 0e27f9a commit b7a8670

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nautilus_core/infrastructure/tests/test_cache_database_postgres.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ mod tests {
161161
wait_until_async(
162162
|| async {
163163
let currencies = pg_cache.load_currencies().await.unwrap();
164-
currencies.len() >= 4
164+
let instruments = pg_cache.load_instruments().await.unwrap();
165+
currencies.len() >= 4 && instruments.len() >= 6
165166
},
166167
Duration::from_secs(2),
167168
)

0 commit comments

Comments
 (0)