Skip to content

Commit bfbe199

Browse files
committed
tests(pivotp): fix flaky pivot aggregation test
1 parent eca7590 commit bfbe199

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_pivotp.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,8 @@ pivotp_test!(
324324
wrk.assert_err(&mut cmd);
325325

326326
let msg = wrk.output_stderr(&mut cmd);
327-
let expected_msg = r#"Polars error: ExprContext { error: ComputeError(ErrString("aggregation 'item' expected no or a single value, got 2 values")), expr: ErrString("col(\"sales\").filter([(col(\"product\")) == (\"A\")]).item(allow_empty=true)") }
328-
"#;
329-
assert_eq!(msg, expected_msg);
327+
let expected_msg = r#"Polars error: ExprContext { error: ComputeError(ErrString("aggregation 'item' expected no or a single value, got 2 values")), expr: ErrString("col(\"sales\").filter([(col(\"product\"))"#;
328+
assert!(msg.starts_with(expected_msg));
330329
}
331330
);
332331

0 commit comments

Comments
 (0)