Skip to content

Commit

Permalink
[java] Disabling a test on travis because using 'ping' is not allowed…
Browse files Browse the repository at this point in the history
… there
  • Loading branch information
barancev committed Apr 25, 2020
1 parent 817b767 commit a65b24e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/client/test/org/openqa/selenium/os/CommandLineTest.java
Expand Up @@ -20,8 +20,10 @@
import static java.lang.System.getenv;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assumptions.assumeThat;
import static org.openqa.selenium.Platform.WINDOWS;
import static org.openqa.selenium.os.CommandLine.getLibraryPathPropertyName;
import static org.openqa.selenium.testing.TestUtilities.isOnTravis;

import org.junit.Assume;
import org.junit.Test;
Expand Down Expand Up @@ -132,10 +134,10 @@ public void canCopyOutput() {

@Test
public void canDetectSuccess() {
assumeThat(isOnTravis()).as("Operation not permitted on travis").isFalse();
CommandLine commandLine = new CommandLine(
testExecutable, (Platform.getCurrent().is(WINDOWS) ? "-n" : "-c"), "3", "localhost");
commandLine.execute();
System.out.println(commandLine.getStdOut());
assertThat(commandLine.getExitCode()).isEqualTo(0);
assertThat(commandLine.isSuccessful()).isTrue();
}
Expand Down

0 comments on commit a65b24e

Please sign in to comment.