浏览代码

[tests] Sockets don't seem to be implemented for jvm

Rudy Ges 1 年之前
父节点
当前提交
46d0b1bf06
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/unit/src/unitstd/sys/net/Socket.unit.hx

+ 2 - 0
tests/unit/src/unitstd/sys/net/Socket.unit.hx

@@ -14,6 +14,7 @@ c.connect(host, port);
 c.input != null;
 c.output != null;
 
+#if !jvm
 // select when accept() would succeed
 var select = sys.net.Socket.select([s], [s], [s], 0.01);
 select.read.length == 1;
@@ -53,6 +54,7 @@ select.read.length == 1;
 select.write.length == 1;
 select.others.length == 0;
 c.read() == "abc";
+#end
 
 c.close();
 s.close();