]> gitweb.factorcode.org Git - factor.git/commitdiff
io.sockets.secure.unix: fix using and disable test
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 12 Aug 2023 05:46:40 +0000 (00:46 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 12 Aug 2023 05:49:34 +0000 (00:49 -0500)
basis/io/sockets/secure/unix/unix-tests.factor
basis/io/sockets/secure/unix/unix.factor

index 7853fe0d1c0bf7a051e0ee50778fc89af4ac1b82..17886df31aa91d2d14b51af76712efa18d080972 100644 (file)
@@ -38,21 +38,21 @@ IN: io.sockets.secure.tests
 ] unit-test
 
 ! Now, see what happens if the server closes the connection prematurely
-[
-    <promise> "port" set
-    [
-        drop
-        input-stream get stream>> handle>> f >>connected drop
-    ] server-test
-    client-test
-] [
-    os linux? [
-        ! XXX: we should throw premature-close-error here
-        "unexpected eof" subseq-index
-    ] [
-        premature-close-error?
-    ] if
-] must-fail-with
+[
+    <promise> "port" set
+    [
+        drop
+        input-stream get stream>> handle>> f >>connected drop
+    ] server-test
+    client-test
+] [
+    os linux? [
+        ! XXX: we should throw premature-close-error here
+        "unexpected eof" subseq-index
+    ] [
+        premature-close-error?
+    ] if
+] must-fail-with
 
 ! Now, try validating the certificate. This should fail because its
 ! actually an invalid certificate
index 99e81735c2c7a360c6bf5e3a4c3a7091475656f2..ff7bb08ba9ade800c9dce7b8a2c0a6b19108ac9d 100644 (file)
@@ -2,7 +2,8 @@
 ! See https://factorcode.org/license.txt for BSD license.
 USING: accessors destructors io.backend.unix io.files
 io.sockets.private io.sockets.secure io.sockets.secure.openssl
-io.timeouts kernel openssl openssl.libssl system ;
+io.timeouts kernel openssl openssl.libcrypto openssl.libssl
+system ;
 FROM: io.ports => shutdown ;
 IN: io.sockets.secure.unix