test(partition): less proptest discards

Generate non-empty strings as inputs to proptest tests instead of
generating random strings and filtering.
pull/24376/head
Dom Dwyer 2023-08-23 14:46:09 +02:00
parent e2a61c072d
commit 6a68b6edf0
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
1 changed files with 1 additions and 3 deletions

View File

@ -500,10 +500,8 @@ mod tests {
#[test]
fn partition_hash_id_representations(
table_id in 0..i64::MAX,
partition_key in any::<String>(),
partition_key in ".+",
) {
prop_assume!(!partition_key.is_empty());
let table_id = TableId::new(table_id);
let partition_key = PartitionKey::from(partition_key);