Procházet zdrojové kódy

Merge pull request #4537 from gyuho/mk

e2e: compare output in Go string literal
Gyu-Ho Lee před 10 roky
rodič
revize
31d2bb9739
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      e2e/etcdctl_test.go

+ 2 - 2
e2e/etcdctl_test.go

@@ -212,9 +212,9 @@ func etcdctlSet(clus *etcdProcessCluster, key, value string, noSync bool) error
 func etcdctlMk(clus *etcdProcessCluster, key, value string, first, noSync bool) error {
 func etcdctlMk(clus *etcdProcessCluster, key, value string, first, noSync bool) error {
 	cmdArgs := append(etcdctlPrefixArgs(clus, noSync), "mk", key, value)
 	cmdArgs := append(etcdctlPrefixArgs(clus, noSync), "mk", key, value)
 	if first {
 	if first {
-		return spawnWithExpect(cmdArgs, value)
+		return spawnWithExpectedString(cmdArgs, value)
 	}
 	}
-	return spawnWithExpect(cmdArgs, "Error:  105: Key already exists")
+	return spawnWithExpectedString(cmdArgs, "Error:  105: Key already exists")
 }
 }
 
 
 func etcdctlGet(clus *etcdProcessCluster, key, value string, noSync bool) error {
 func etcdctlGet(clus *etcdProcessCluster, key, value string, noSync bool) error {