diff --git a/crates/nu-command/tests/commands/split_by.rs b/crates/nu-command/tests/commands/split_by.rs index ab4631d079..1f648a1fcf 100644 --- a/crates/nu-command/tests/commands/split_by.rs +++ b/crates/nu-command/tests/commands/split_by.rs @@ -56,8 +56,11 @@ fn errors_if_non_record_input() { " )); - assert!(only_supports - .err - .contains("only Record input data is supported")); + assert!( + only_supports + .err + .contains("only Record input data is supported") + || only_supports.err.contains("expected: record") + ); }) }