Skip to content

Commit 4b88908

Browse files
johnmayegonw
authored andcommitted
Looks like we can different timeout messages based on the system?
1 parent 6643909 commit 4b88908

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/inchi/src/test/java/org/openscience/cdk/inchi/InChIGeneratorTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import static org.hamcrest.CoreMatchers.containsString;
2323
import static org.hamcrest.CoreMatchers.is;
2424
import static org.hamcrest.MatcherAssert.assertThat;
25+
import static org.hamcrest.Matchers.anyOf;
2526

2627
import java.util.ArrayList;
2728
import java.util.Arrays;
@@ -905,7 +906,8 @@ public void timeout() throws Exception {
905906
InChIGenerator generator = inchiFact.getInChIGenerator(mol, "W0.01");
906907
assertThat(generator.getReturnStatus(), is(INCHI_RET.ERROR));
907908
assertThat(generator.getMessage(),
908-
containsString("Time limit exceeded"));
909+
anyOf(containsString("Time limit exceeded"),
910+
containsString("Structure normalization timeout")));
909911
}
910912

911913
/**

0 commit comments

Comments
 (0)