-
Notifications
You must be signed in to change notification settings - Fork 259
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
Rework TestPseudoConsolePowershell #1255
Conversation
9e33c56
to
5892a85
Compare
@@ -1,3 +1,6 @@ | |||
run: | |||
timeout: 8m |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumped this as the linter was timing out while running. We have too much code now 😐
It would be nice to have a test checking that the output we get from the conpty |
@helsaawy Agreed, let me look into this. Do we want to merge this for the time being so we can de-flake the CI? (after review of course haha) |
That sounds good, since it may take some experimentation to see if thats possible |
Before this test used to write something to the pty and then see if we could read the same thing shortly afterwards. Really all we wanna test here is just that we can write things in general, so the same thing that TestExecStdinPowershell is currently doing should suffice. If the process exits then the 'exit' write went through so that should be plenty for this test. This change additionally adds a timeout for waiting for the process to exit for TestPseudoConsolePowershell as well as TestExecStdinPowershell so we have some indicator for if the 'exit' write didn't work. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
5892a85
to
42c793c
Compare
Needed to rebase to pull in this 0124eb3 |
Before this test used to write something to the pty and then see if we could read the same thing shortly afterwards. Really all we wanna test here is just that we can write things in general, so the same thing that TestExecStdinPowershell is currently doing should suffice. If the process exits then the 'exit' write went through so that should be plenty for this test. This change additionally adds a timeout for waiting for the process to exit for TestPseudoConsolePowershell as well as TestExecStdinPowershell so we have some indicator for if the 'exit' write didn't work. Signed-off-by: Daniel Canter <dcanter@microsoft.com> (cherry picked from commit e093fbd) Signed-off-by: Daniel Canter <dcanter@microsoft.com>
Before this test used to write something to the pty and then see if we could read the same thing shortly afterwards. Really all we wanna test here is just that we can write things in general, so the same thing that TestExecStdinPowershell is currently doing should suffice. If the process exits then the 'exit' write went through so that should be plenty for this test. This change additionally adds a timeout for waiting for the process to exit for TestPseudoConsolePowershell as well as TestExecStdinPowershell so we have some indicator for if the 'exit' write didn't work. Signed-off-by: Daniel Canter <dcanter@microsoft.com> (cherry picked from commit e093fbd) Signed-off-by: Daniel Canter <dcanter@microsoft.com>
Before this test used to write something to the pty and then see if we could read the same thing shortly afterwards. Really all we wanna test here is just that we can write things in general, so the same thing that TestExecStdinPowershell is currently doing should suffice. If the process exits then the 'exit' write went through so that should be plenty for this test. This change additionally adds a timeout for waiting for the process to exit for TestPseudoConsolePowershell as well as TestExecStdinPowershell so we have some indicator for if the 'exit' write didn't work. Signed-off-by: Daniel Canter <dcanter@microsoft.com>
Before, this test used to write something to the pty and then see if we
could read the same thing shortly afterwards. Really all we wanna test here
is just that we can write things in general, so the same thing that
TestExecStdinPowershell is currently doing should suffice.
If the process exits then the 'exit' write went through so that should be
plenty for this test. This change additionally adds a timeout for waiting
for the process to exit for TestPseudoConsolePowershell as well as
TestExecStdinPowershell so we have an indicator for if the 'exit' write
didn't work.