Skip to content

Commit 5356bd8

Browse files
authored
No need for 3000 row tests (#8978)
LARGE_NUMBER_OF_ROWS was set to 3000 in order to confirm that the queries related to user data export do not trigger full table scans for a large number of rows, but it's only necessary to have a non-zero amount of rows. Tune this down as it was causing tests to take a long time.
1 parent c797644 commit 5356bd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nexus/db-queries/src/db/datastore/user_data_export.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,10 @@ mod tests {
928928
use std::net::Ipv6Addr;
929929

930930
const PROJECT_NAME: &str = "bobs-barrel-of-bits";
931-
const LARGE_NUMBER_OF_ROWS: usize = 3000;
931+
932+
// Enough rows that CRDB's query planner will complain when full table
933+
// scans are not allowed.
934+
const LARGE_NUMBER_OF_ROWS: usize = 10;
932935

933936
#[tokio::test]
934937
async fn test_resource_id_collision() {

0 commit comments

Comments
 (0)