提交 52e9d252 authored 作者: Thomas Mueller's avatar Thomas Mueller

Make the tests work on Raspberry Pi

上级 aee669ac
......@@ -6,6 +6,7 @@
package org.h2.test.unit;
import java.awt.Button;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.MouseEvent;
import java.io.ByteArrayOutputStream;
......@@ -142,6 +143,7 @@ public class TestTools extends TestBase {
lastUrl = "-";
// double-click prevention is 100 ms
Thread.sleep(200);
try {
MouseEvent me = new MouseEvent(new Button(), 0, 0, 0, 0, 0, 0,
false, MouseEvent.BUTTON1);
c.mouseClicked(me);
......@@ -156,6 +158,11 @@ public class TestTools extends TestBase {
// check if the service was stopped
c.runTool("-webPort", "9002");
} catch (HeadlessException e) {
// ignore
}
c.shutdown();
// trying to use the same port for two services should fail,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论