spiegel_podman/pkg/bindings/test
Paul Holzinger a360b29626
pkg/bindings/containers: do not ignore ErrUnexpectedEOF
Do not ignore ErrUnexpectedEOF from DemuxHeader(), if we fail to parse
the header there must have been a clear protocal error between client
and server which should be reported and not silently ignored. I wonder
ig this might explain why we have missing remote exec/attach output
without any error, it is possible we are eating some internal errors due
this.

Commit ba8eba83ef added the ErrUnexpectedEOF check but without any
explanation why that would be needed. The tests from that commit pass
without it locally but not in CI. With some debugging best I found the
issue is actually a test bug. The channel is not consumed until it is
closed which means the main test exists before the log reading goroutine
is done. And if the main test exists the first step it does is to kill
the podman service which then can trigger the ErrUnexpectedEOF server on
the still open http connection and thus the test case failed there.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-07-10 19:57:16 +02:00
..
fixture Add guard for BuildOptions.CommonBuildOpts 2021-09-30 14:30:06 -07:00
attach_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
auth_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
common_test.go ci: rm allow-unused from nolintlint settings 2025-03-31 12:27:55 -07:00
connection_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
containers_test.go pkg/bindings/containers: do not ignore ErrUnexpectedEOF 2025-07-10 19:57:16 +02:00
create_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
exec_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
generator_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
images_test.go CI: use local registry, part 2 of 3: fix tests 2024-07-11 04:39:45 -06:00
info_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
manifests_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
networks_test.go update golangci-lint to 1.61.0 2024-09-17 13:30:59 +02:00
pods_test.go Replace golang.org/x/exp/slices with slices from std 2024-04-23 11:16:40 +02:00
resource_test.go golangci-lint: remove most skip dirs 2024-08-19 11:41:28 +02:00
secrets_test.go update golangci-lint to 1.61.0 2024-09-17 13:30:59 +02:00
system_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
test_suite_test.go update to ginkgo v2 2023-05-02 11:27:35 +02:00
types_test.go Bump Go module to v5 2024-02-08 09:35:39 -05:00
volumes_test.go update golangci-lint to 1.61.0 2024-09-17 13:30:59 +02:00