@@ -350,15 +350,8 @@ func TestAgent_Session_TTY_Hushlogin(t *testing.T) {
350350
351351func TestAgent_Session_TTY_FastCommandHasOutput (t * testing.T ) {
352352 t .Parallel ()
353- if runtime .GOOS == "windows" {
354- // This might be our implementation, or ConPTY itself.
355- // It's difficult to find extensive tests for it, so
356- // it seems like it could be either.
357- t .Skip ("ConPTY appears to be inconsistent on Windows." )
358- }
359-
360353 // This test is here to prevent regressions where quickly executing
361- // commands (with TTY) don't flush their output to the SSH session.
354+ // commands (with TTY) don't sync their output to the SSH session.
362355 //
363356 // See: https://github.com/coder/coder/issues/6656
364357 ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
@@ -404,20 +397,13 @@ func TestAgent_Session_TTY_FastCommandHasOutput(t *testing.T) {
404397
405398func TestAgent_Session_TTY_HugeOutputIsNotLost (t * testing.T ) {
406399 t .Parallel ()
407- if runtime .GOOS == "windows" {
408- // This might be our implementation, or ConPTY itself.
409- // It's difficult to find extensive tests for it, so
410- // it seems like it could be either.
411- t .Skip ("ConPTY appears to be inconsistent on Windows." )
412- }
413- t .Skip ("This test proves we have a bug where parts of large output on a PTY can be lost after the command exits, skipped to avoid test failures." )
414-
415- // This test is here to prevent prove we have a bug where quickly executing
416- // commands (with TTY) don't flush their output to the SSH session. This is
417- // due to the pty being closed before all the output has been copied, but
418- // protecting against this requires a non-trivial rewrite of the output
419- // processing (or figuring out a way to put the pty in a mode where this
420- // does not happen).
400+
401+ // This test is here to prevent regressions where a command (with or
402+ // without) a large amount of output would not be fully copied to the
403+ // SSH session. On unix systems, this was fixed by duplicating the file
404+ // descriptor of the PTY master and using it for copying the output.
405+ //
406+ // See: https://github.com/coder/coder/issues/6656
421407 ctx , cancel := context .WithTimeout (context .Background (), testutil .WaitLong )
422408 defer cancel ()
423409 //nolint:dogsled
0 commit comments