Skip to content

Commit 8abae3b

Browse files
committed
Fix error message comparison in shadow.rs
1 parent 0f85823 commit 8abae3b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crates/tests/src/shadow.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ fn test_invalid_color() {
2727
// AppKit ends up calling the `CGColor` selector.
2828
let err = catch(|| shadow.set()).unwrap_err().unwrap().to_string();
2929

30-
assert!(err.contains("CGColor"));
31-
assert!(err.contains("unrecognized selector sent to instance"));
30+
assert!(
31+
err.contains("CGColor") || err.contains("colorUsingColorSpaceName:"),
32+
"{err:?} did not have expected message"
33+
);
34+
assert!(
35+
err.contains("unrecognized selector sent to instance"),
36+
"{err:?} did not have expected message"
37+
);
3238
}

0 commit comments

Comments
 (0)