Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI fails on Windows #4108

Closed
uki00a opened this issue Feb 24, 2020 · 1 comment · Fixed by #5005
Closed

CI fails on Windows #4108

uki00a opened this issue Feb 24, 2020 · 1 comment · Fixed by #5005

Comments

@uki00a
Copy link
Contributor

uki00a commented Feb 24, 2020

test result:  FAIL  704 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out (30788.36ms)

There were 2 test failures.
 FAIL  GET / should serve html
Http: error sending request for url (http://127.0.0.1:8080/): connection error: An existing connection was forcibly closed by the remote host. (os error 10054)
    at Object.constructError ($deno$/errors.ts:69:13)
    at unwrapResponse ($deno$/dispatch_json.ts:40:12)
    at Object.sendAsync ($deno$/dispatch_json.ts:91:10)
    at async sendFetchReq ($deno$/fetch.ts:472:11)
    at async fetch ($deno$/fetch.ts:540:27)
    at async Object.fn (server_test.ts:31:16)
    at async Object.runTests ($deno$/testing.ts:157:7)
    at async runTestModules (runner.ts:234:3)
    at async main (runner.ts:276:5)
 FAIL  GET /ws should upgrade conn to ws
ConnectionRefused: No connection could be made because the target machine actively refused it. (os error 10061)
    at Object.constructError ($deno$/errors.ts:41:13)
    at unwrapResponse ($deno$/dispatch_json.ts:40:12)
    at Object.sendAsync ($deno$/dispatch_json.ts:91:10)
    at async Object.connect ($deno$/net.ts:292:15)
    at async connectWebSocket (file:///D:/a/deno/deno/std/ws/mod.ts:539:12)
    at async Object.fn (server_test.ts:40:8)
    at async Object.runTests ($deno$/testing.ts:157:7)

/std/examples/chat/server_test.ts fails on Windows.

I don't have Windows PC, so it is difficult for me to test at hand...

Does anyone know the cause or solution for this?

Thanks.

@uki00a uki00a changed the title CI fails on windows CI fails on Windows Feb 24, 2020
@hazae41
Copy link
Contributor

hazae41 commented Feb 25, 2020

This works well for me on virtualized Windows 10
https://github.com/bartlomieju/deno/blob/fe9ac35a650dfeea9168fc1cbbbf323b5689fc3b/std/examples/chat/server_test.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants