From 52f13654f790e3d81eae0575ad9edbf97c3f9ed7 Mon Sep 17 00:00:00 2001 From: dshekhar95 <111321288+dshekhar95@users.noreply.github.com> Date: Tue, 13 Sep 2022 13:36:26 -0400 Subject: [PATCH] fix(test) t.go add --compatibility flag (#8269) * add --compatibility flag * add --compability flag to stopCluster --- t/t.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t.go b/t/t.go index 6994d410aa0..6596ddfd1a5 100644 --- a/t/t.go +++ b/t/t.go @@ -112,7 +112,7 @@ func command(args ...string) *exec.Cmd { func startCluster(composeFile, prefix string) error { cmd := command( - "docker-compose", "-f", composeFile, "-p", prefix, + "docker-compose", "--compatibility", "-f", composeFile, "-p", prefix, "up", "--force-recreate", "--build", "--remove-orphans", "--detach") cmd.Stderr = nil @@ -175,7 +175,7 @@ func stopCluster(composeFile, prefix string, wg *sync.WaitGroup, err error) { if err != nil { outputLogs(prefix) } - cmd := command("docker-compose", "-f", composeFile, "-p", prefix, "down", "-v") + cmd := command("docker-compose", "--compatibility", "-f", composeFile, "-p", prefix, "down", "-v") cmd.Stderr = nil if err := cmd.Run(); err != nil { fmt.Printf("Error while bringing down cluster. Prefix: %s. Error: %v\n",