From 38e841fc5cb48a9239ac24362e82ed88734c8fdf Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 5 Apr 2025 20:52:47 -0500 Subject: [PATCH] Get rid of test error. --- test/suite-ev.janet | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/test/suite-ev.janet b/test/suite-ev.janet index cdd43ee8..b2d294a6 100644 --- a/test/suite-ev.janet +++ b/test/suite-ev.janet @@ -430,13 +430,7 @@ # Now do our telnet chat (def bob (assert (net/connect test-host test-port :stream))) (expect-read bob "Whats your name?\n") -(if (= :mingw (os/which)) - (net/write bob "bob") - (do - (def fbob (ev/to-file bob)) - (file/write fbob "bob") - (file/flush fbob) - (:close fbob))) +(net/write bob "bob") (expect-read bob "Welcome bob\n") (def alice (assert (net/connect test-host test-port))) (expect-read alice "Whats your name?\n") @@ -569,7 +563,8 @@ (ev/gather (os/proc-wait p) (ev/slurp (p :out)))) +(def data (string/replace-all "\r" "" data)) (assert (zero? exit-code) "subprocess ran") -(assert (deep= data @"hi\nthere\n") "output is correct") +(assert (= data "hi\nthere\n") "output is correct") (end-suite)