Skip to content

Conversation

deansheather
Copy link
Member

@deansheather deansheather commented Apr 25, 2023

Makes the tests identical because the other ones work. I had to change the codersdk methods a bit to accomplish this.

https://github.com/coder/coder/actions/runs/4786259967/jobs/8510272554

Copy link
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

Sure

bufRead := bufio.NewReader(conn)

// Brief pause to reduce the likelihood that we send keystrokes while
// the shell is simultaneously sending a prompt.
time.Sleep(100 * time.Millisecond)
Copy link
Member

Choose a reason for hiding this comment

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

I guess we can't expect prompt first? If we could set env PS1=> then we'd have something to look for.

Copy link
Member Author

Choose a reason for hiding this comment

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

PS1 doesn't seem to be accepted through env in bash, only as a variable

@deansheather deansheather enabled auto-merge (squash) April 26, 2023 00:25
@deansheather deansheather merged commit f1dfeb0 into main Apr 26, 2023
@deansheather deansheather deleted the dean/fix-apptest-flake branch April 26, 2023 00:31
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2023
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.

3 participants