The test was passing previously because the preamble was already buffered. After the change to return Scanner.Err() the final read error on the buffer was no longer being ignored. Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: a74cc833450dfc48cc95b2b109cbcb24feff4929 Component: engine