fix: Enable reconnectingpty loadtest and fix/improve logging (#5403)

* fix: Enable reconnectingpty loadtest and fix/improve logging

This commit re-enabled reconnectingpty loadtests after a logging
refactor of `(*agent).handleReconnectingPTY`. The reasons the tests were
flaking was that `logger.Error` was being called and `slogtest` failing
the test.

We could have set the option for `slogtest` to disable failing, but that
could hide real issues. The current approach improves reconnectingpty
logging overall and provides more insight into what's happening. It's
expected that reconnectingpty sessions fail after the agent is closed,
so calling `logger.Error` at that point is not wanted.

Ref: #5322
This commit is contained in:
Mathias Fredriksson
2022-12-13 21:28:07 +02:00
committed by GitHub
parent 560c8ce0f6
commit 4fc4c01cea
3 changed files with 69 additions and 31 deletions
-1
View File
@@ -22,7 +22,6 @@ import (
func Test_Runner(t *testing.T) {
t.Parallel()
t.Skip("See: https://github.com/coder/coder/issues/5247")
t.Run("OK", func(t *testing.T) {
t.Parallel()