podman/pkg/bindings/test
Daniel J Walsh c734c13904
Fix potential race condition in testing
The It("podman wait to pause|unpause condition"... test is
flaking every so often when a messages is sent in the second
function to a channel.  It is my believe that in between the time
the first function sends a message to the channel and before it closes
the channel the second errChan=make() has happened.  This would mean that
the fist function closes the second errChan, and then when the second
function sends a message to the second errChan, it fails and blows up with
the error you are seeing.

By creating a different variable for the second channel, we eliminate the race.

Fixes: https://github.com/containers/podman/issues/6518

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-12-01 14:11:04 -05:00
..
attach_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
auth_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
common_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
containers_test.go Fix potential race condition in testing 2020-12-01 14:11:04 -05:00
create_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
exec_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
images_test.go move from docker.io 2020-10-28 13:16:37 -06:00
info_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
manifests_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00
pods_test.go Ensure pod infra containers have an exit command 2020-08-13 14:03:57 -04:00
system_test.go Fix up errors found by codespell 2020-09-11 06:14:25 -04:00
test_suite_test.go WIP V2 attach bindings and test 2020-05-13 11:49:17 -07:00
volumes_test.go Switch all references to github.com/containers/libpod -> podman 2020-07-28 08:23:45 -04:00