Skip to content

Commit 41f1681

Browse files
committed
Make a test not rely on JsonElement.toString
1 parent d06e54a commit 41f1681

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/server/test/org/openqa/grid/internal/utils/configuration/GridNodeConfigurationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.openqa.grid.common.exception.GridConfigurationException;
3535
import org.openqa.grid.internal.cli.GridNodeCliOptions;
3636
import org.openqa.selenium.Platform;
37+
import org.openqa.selenium.json.Json;
3738
import org.openqa.selenium.remote.DesiredCapabilities;
3839

3940
import java.io.IOException;
@@ -186,7 +187,7 @@ public void testAsJson() {
186187
+ "\"debug\":false,"
187188
+ "\"port\":5555,"
188189
+ "\"role\":\"node\","
189-
+ "\"timeout\":1800}", gnc.toJson().toString());
190+
+ "\"timeout\":1800}", new Json().toJson(gnc.toJson()));
190191
}
191192

192193
@Test

0 commit comments

Comments
 (0)