From 1e0808d501cf9adea65e7cacd123ea4fea06a13a Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 10 Jun 2020 00:29:12 +0800 Subject: fix: Deno.readSync on stdin (#6126) Currently sync operations on stdin are failing because tokio::Stdin cannot be converted to a std::File. This commit replaces tokio::stdin with a raw file descriptor wrapped in a std::fs::File which can be converted to a tokio::File and back again making the synchronous version of op_read actually work. --- cli/tests/unit/unit_tests.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tests/unit/unit_tests.ts') diff --git a/cli/tests/unit/unit_tests.ts b/cli/tests/unit/unit_tests.ts index 515da9f4a..7891ea418 100644 --- a/cli/tests/unit/unit_tests.ts +++ b/cli/tests/unit/unit_tests.ts @@ -52,6 +52,7 @@ import "./request_test.ts"; import "./resources_test.ts"; import "./signal_test.ts"; import "./stat_test.ts"; +import "./stdio_test.ts"; import "./streams_internal_test.ts"; import "./streams_piping_test.ts"; import "./streams_transform_test.ts"; -- cgit v1.2.3