Skip to content

Commit

Permalink
Looks like we can different timeout messages based on the system?
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmay authored and egonw committed Dec 18, 2021
1 parent 6643909 commit 4b88908
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -22,6 +22,7 @@
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.anyOf;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -905,7 +906,8 @@ public void timeout() throws Exception {
InChIGenerator generator = inchiFact.getInChIGenerator(mol, "W0.01");
assertThat(generator.getReturnStatus(), is(INCHI_RET.ERROR));
assertThat(generator.getMessage(),
containsString("Time limit exceeded"));
anyOf(containsString("Time limit exceeded"),
containsString("Structure normalization timeout")));
}

/**
Expand Down

0 comments on commit 4b88908

Please sign in to comment.