Merge pull request #47106 from vvoland/c8d-windows-pull-error-msg
c8d/integration: Adjust error in TestPullLinuxImageFailsOnWindows
This commit is contained in:
commit
615dfdf672
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue