Merge pull request #47106 from vvoland/c8d-windows-pull-error-msg

c8d/integration: Adjust error in TestPullLinuxImageFailsOnWindows
This commit is contained in:
Paweł Gronowski 2024-01-18 17:28:52 +01:00 committed by GitHub
commit 615dfdf672
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,7 +207,13 @@ func (s *DockerHubPullSuite) TestPullClientDisconnect(c *testing.T) {
func (s *DockerCLIPullSuite) TestPullLinuxImageFailsOnWindows(c *testing.T) {
testRequires(c, DaemonIsWindows, Network)
_, _, err := dockerCmdWithError("pull", "ubuntu")
assert.ErrorContains(c, err, "no matching manifest for windows")
errorMessage := "no matching manifest for windows"
if testEnv.UsingSnapshotter() {
errorMessage = "no match for platform in manifest"
}
assert.ErrorContains(c, err, errorMessage)
}
// Regression test for https://github.com/docker/docker/issues/28892