Browse Source

test: update error message

Validation got improved in `compose-go` so the error message is
slightly different.

Signed-off-by: Milas Bowman <[email protected]>
Milas Bowman 2 years ago
parent
commit
cd17c8a950
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/e2e/build_test.go

+ 2 - 2
pkg/e2e/build_test.go

@@ -390,8 +390,8 @@ func TestBuildPlatformsStandardErrors(t *testing.T) {
 		res := c.RunDockerComposeCmdNoCheck(t, "--project-directory", "fixtures/build-test/platforms",
 			"-f", "fixtures/build-test/platforms/compose-service-platform-not-in-build-platforms.yaml", "build")
 		res.Assert(t, icmd.Expected{
-			ExitCode: 1,
-			Err:      `service "platforms" build configuration does not support platform: linux/riscv64`,
+			ExitCode: 15,
+			Err:      `service.build.platforms MUST include service.platform "linux/riscv64"`,
 		})
 	})