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

fix test

上级 c3f959c4
......@@ -20,6 +20,7 @@ package integration
import (
"context"
"fmt"
"os/exec"
"strings"
"testing"
......@@ -140,8 +141,8 @@ func validateStopRunningNode(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
t.Skip("Restarting nodes is broken :(")
t.Skip("Restarting nodes is broken :(")
// Grab the stopped node
name := "m03"
......@@ -191,7 +192,10 @@ func validateDeleteNodeFromMultiNode(ctx context.Context, t *testing.T, profile
if DockerDriver() {
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())
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册