Skip to content

Commit

Permalink
Make a test not rely on JsonElement.toString
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Mar 6, 2018
1 parent d06e54a commit 41f1681
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.openqa.grid.common.exception.GridConfigurationException;
import org.openqa.grid.internal.cli.GridNodeCliOptions;
import org.openqa.selenium.Platform;
import org.openqa.selenium.json.Json;
import org.openqa.selenium.remote.DesiredCapabilities;

import java.io.IOException;
Expand Down Expand Up @@ -186,7 +187,7 @@ public void testAsJson() {
+ "\"debug\":false,"
+ "\"port\":5555,"
+ "\"role\":\"node\","
+ "\"timeout\":1800}", gnc.toJson().toString());
+ "\"timeout\":1800}", new Json().toJson(gnc.toJson()));
}

@Test
Expand Down

0 comments on commit 41f1681

Please sign in to comment.