Browse Source

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

Rudy Ges 1 year ago
parent
commit
46d0b1bf06
1 changed files with 2 additions and 0 deletions
  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();