-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.release-blocker
Milestone
Description
On HEAD this test function fails:
func TestCopyUnixToStdout(t *testing.T) {
sockPath := filepath.Join(t.TempDir(), "unixsock")
addr, err := net.ResolveUnixAddr("unix", sockPath)
if err != nil {
t.Fatal(err)
}
ln, err := net.ListenUnix("unix", addr)
if err != nil {
t.Fatal(err)
}
defer ln.Close()
go func() {
server, err := ln.Accept()
if err != nil {
t.Error(err)
return
}
defer func() {
if err := server.Close(); err != nil {
t.Error(err)
}
}()
for i := 0; i < 100; i++ {
if _, err := server.Write(bytes.Repeat([]byte{'a'}, 1024)); err != nil {
t.Error(err)
return
}
}
}()
conn, err := net.Dial(ln.Addr().Network(), ln.Addr().String())
if err != nil {
t.Fatal(err)
}
if _, err := io.Copy(os.Stdout, conn); err != nil {
t.Fatal(err)
}
}I see
foo_test.go:50: write /dev/stdout: waiting for unsupported file type
Here line 50 is the t.Fatal called when io.Copy fails.
This test passes with Go 1.20.
This is most likely due to https://go.dev/cl/466015. CC @panjf2000
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.release-blocker