提交 6cd09ffa 编写于 作者: S Sharif Elgamal

fix test

上级 c3f959c4
...@@ -20,6 +20,7 @@ package integration ...@@ -20,6 +20,7 @@ package integration
import ( import (
"context" "context"
"fmt"
"os/exec" "os/exec"
"strings" "strings"
"testing" "testing"
...@@ -140,8 +141,8 @@ func validateStopRunningNode(ctx context.Context, t *testing.T, profile string) ...@@ -140,8 +141,8 @@ func validateStopRunningNode(ctx context.Context, t *testing.T, profile string)
func validateStartNodeAfterStop(ctx context.Context, t *testing.T, profile string) { func validateStartNodeAfterStop(ctx context.Context, t *testing.T, profile string) {
// TODO (#7496): remove skip once restarts work // TODO (#7496): remove skip once restarts work
t.Skip("Restarting nodes is broken :(") t.Skip("Restarting nodes is broken :(")
// Grab the stopped node // Grab the stopped node
name := "m03" name := "m03"
...@@ -191,7 +192,10 @@ func validateDeleteNodeFromMultiNode(ctx context.Context, t *testing.T, profile ...@@ -191,7 +192,10 @@ func validateDeleteNodeFromMultiNode(ctx context.Context, t *testing.T, profile
if DockerDriver() { if DockerDriver() {
rr, err := Run(t, exec.Command("docker", "volume", "ls")) rr, err := Run(t, exec.Command("docker", "volume", "ls"))
if strings.Contains(rr.Stdout.String(), fmt.Sprintf("%s-%s", profile, name) { if err != nil {
t.Errorf("failed to run %q : %v", rr.Command(), err)
}
if strings.Contains(rr.Stdout.String(), fmt.Sprintf("%s-%s", profile, name)) {
t.Errorf("docker volume was not properly deleted: %s", rr.Stdout.String()) t.Errorf("docker volume was not properly deleted: %s", rr.Stdout.String())
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册