mounttable cmd: Change success message for Unmount.
Change-Id: Ie1bc0a90425bf864178f0a875cfb6333042e9519
diff --git a/tools/mounttable/impl.go b/tools/mounttable/impl.go
index 694d8bc..5b66223 100644
--- a/tools/mounttable/impl.go
+++ b/tools/mounttable/impl.go
@@ -151,7 +151,7 @@
if err := call.Finish(); err != nil {
return err
}
- fmt.Fprintln(cmd.Stdout(), "Name unmounted successfully.")
+ fmt.Fprintln(cmd.Stdout(), "Unmount successful or name not mounted.")
return nil
}
diff --git a/tools/mounttable/impl_test.go b/tools/mounttable/impl_test.go
index a484ba3..d4109d7 100644
--- a/tools/mounttable/impl_test.go
+++ b/tools/mounttable/impl_test.go
@@ -143,7 +143,7 @@
if err := cmd.Execute([]string{"unmount", naming.JoinAddressName(endpoint.String(), ""), "server"}); err != nil {
t.Fatalf("%v", err)
}
- if expected, got := "Name unmounted successfully.", strings.TrimSpace(stdout.String()); got != expected {
+ if expected, got := "Unmount successful or name not mounted.", strings.TrimSpace(stdout.String()); got != expected {
t.Errorf("Got %q, expected %q", got, expected)
}
stdout.Reset()