Skip to content

Commit

Permalink
fix(test) t.go add --compatibility flag (#8269)
Browse files Browse the repository at this point in the history
* add --compatibility flag

* add --compability flag to stopCluster
  • Loading branch information
dshekhar95 authored Sep 13, 2022
1 parent a12bf95 commit 52f1365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 52f1365

Please sign in to comment.