tests: Fix races in the read-growing-file test
authorThibault Saunier <tsaunier@igalia.com>
Wed, 9 Dec 2020 13:40:40 +0000 (10:40 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 9 Dec 2020 13:52:24 +0000 (10:52 -0300)
commit22d37a930cea8d179dbae1e44e4c60a5a1780da1
tree61f2ae5daf763eedd871a934c4e0485313be2cb1
parentf1f966d987434e1a294b92bc97c374606c68695b
tests: Fix races in the read-growing-file test

First: the buffer is pushed on the encoding filesink only *after* the
checkpoints, leading to wrong ordering in expectations.

The second one is about EOS being posted on the bus *before* the
stop action is executed, leading to the action never being executed.
That action was plain useless as the default behavior of validate
scenario is to internally create a "stop" action on EOS (unless
disabled by user).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/968>
tests/validate/giosrc/read-growing-file.validatetest