Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

feat(ChildProcessStream): capture exit code on exit #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vigoux
Copy link
Member

@vigoux vigoux commented Jul 1, 2022

As discussed here.

cc @justinmk

@vigoux
Copy link
Member Author

vigoux commented Jul 1, 2022

I somehow can't run the tests locally though/

@vigoux
Copy link
Member Author

vigoux commented Jul 1, 2022

I ran the tests, but for some reason I can't make it work ?

@justinmk
Copy link
Member

justinmk commented Jul 1, 2022

do you mean , the test fails?

test/session_spec.lua Outdated Show resolved Hide resolved
@vigoux
Copy link
Member Author

vigoux commented Jul 1, 2022

Should be all good now.
The problem is that we have to force the uv loop to run a bit in order to get the exit code.

test/session_spec.lua Outdated Show resolved Hide resolved
test/session_spec.lua Outdated Show resolved Hide resolved
@vigoux
Copy link
Member Author

vigoux commented Jul 1, 2022

So, this does not work (again), and this time I really don't know why.
I don't have more time at hand for now, I'll dig into this later.

end)

it("can can capture signal", function()
session:close "kill"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is uv.run() needed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test does not pass for now, but it was needed in the exit code test.

@justinmk
Copy link
Member

justinmk commented Jun 30, 2023

Related/duplicate: #44

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

Successfully merging this pull request may close these issues.

2 participants