]> gitweb.factorcode.org Git - factor.git/commitdiff
io.sockets.secure.openssl: use different ports in 64-bit vs 32-bit
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 22 Aug 2023 03:54:26 +0000 (20:54 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 22 Aug 2023 03:54:26 +0000 (20:54 -0700)
basis/io/sockets/secure/openssl/openssl-tests.factor

index b3ea818c11558ad63fde71926337b34b865c60f5..632d83d52e78be0ccd70ce9fecefa73305932c64 100644 (file)
@@ -1,13 +1,15 @@
 USING: accessors continuations http.client http.server io.servers
 io.sockets.secure io.sockets.secure.openssl io.timeouts kernel
-tools.test ;
+layouts tools.test ;
 IN: io.sockets.secure.openssl.tests
 
 { 200 } [ "https://www.google.se" http-get drop code>> ] unit-test
 
 [
-    <http-server> 8887 >>insecure f >>secure [
-        "https://localhost:8887" http-get
+    <http-server> cell-bits 64 = 8887 8888 ? >>insecure f >>secure [
+        cell-bits 64 =
+        "https://localhost:8887"
+        "https://localhost:8888" ? http-get
     ] with-threaded-server
 ] must-fail
 ! XXX: Make this fail with certificate-missing-error? on Windows someday.