Skip to content

Commit 8d6d00e

Browse files
committed
RDBC-907: fix macOS openBrowser via cmd function command
1 parent b64dac6 commit 8d6d00e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/test/java/net/ravendb/client/driver/RavenTestDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ protected void openBrowser(String url) {
371371
Runtime runtime = Runtime.getRuntime();
372372
String osName = System.getProperty("os.name").toLowerCase();
373373
boolean isMacOs = osName.contains("mac") || osName.contains("darwin");
374-
374+
375375
try {
376376
if (isMacOs) {
377377
runtime.exec("open " + url);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package net.ravendb.client.test.issues;
2+
3+
import net.ravendb.client.RemoteTestBase;
4+
import net.ravendb.client.documents.IDocumentStore;
5+
import org.junit.jupiter.api.Test;
6+
7+
public class RDBC_905 extends RemoteTestBase {
8+
9+
@Test
10+
public void canOpenBrowserOnMacOs() throws Exception {
11+
try (IDocumentStore store = getDocumentStore()) {
12+
waitForUserToContinueTheTest(store);
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)