Skip to content

Commit 737a25b

Browse files
committed
Relax the test a bit; seems like package names are not always reported?
1 parent 7b0fc9b commit 737a25b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

randomizedtesting-jupiter/src/test/java/com/carrotsearch/randomizedtesting/tests/F005_ThreadLeaks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void leakErrorMessageContainsStackTrace() {
228228
finishedWithFailure(
229229
instanceOf(AssertionError.class),
230230
new Condition<>(
231-
t -> t.getMessage().contains(getClass().getPackageName()),
231+
t -> t.getMessage().contains(getClass().getSimpleName()),
232232
"error message contains stack frames"))));
233233
}
234234

0 commit comments

Comments
 (0)