End of the // eradication.
or was that p eradication?
// is no longer given any special status. Names are
cleaned pretty much everywhere before being used,
multiple adjacent spashes are squashed into 1,
trailing slashes are removed. Thus starting
a name with // is now a mistake.
Change-Id: I2dc5917533352fd9d211a9d1ab184e5cf2f8b56f
diff --git a/tools/binary/impl_test.go b/tools/binary/impl_test.go
index 073e8f3..16031b6 100644
--- a/tools/binary/impl_test.go
+++ b/tools/binary/impl_test.go
@@ -119,7 +119,7 @@
cmd.Init(nil, &stdout, &stderr)
// Test the 'delete' command.
- if err := cmd.Execute([]string{"delete", naming.JoinAddressName(endpoint.String(), "//exists")}); err != nil {
+ if err := cmd.Execute([]string{"delete", naming.JoinAddressName(endpoint.String(), "exists")}); err != nil {
t.Fatalf("%v", err)
}
if expected, got := "Binary deleted successfully", strings.TrimSpace(stdout.String()); got != expected {
@@ -135,7 +135,7 @@
defer os.Remove(dir)
file := path.Join(dir, "testfile")
defer os.Remove(file)
- if err := cmd.Execute([]string{"download", naming.JoinAddressName(endpoint.String(), "//exists"), file}); err != nil {
+ if err := cmd.Execute([]string{"download", naming.JoinAddressName(endpoint.String(), "exists"), file}); err != nil {
t.Fatalf("%v", err)
}
if expected, got := "Binary downloaded to file "+file, strings.TrimSpace(stdout.String()); got != expected {
@@ -151,7 +151,7 @@
stdout.Reset()
// Test the 'upload' command.
- if err := cmd.Execute([]string{"upload", naming.JoinAddressName(endpoint.String(), "//exists"), file}); err != nil {
+ if err := cmd.Execute([]string{"upload", naming.JoinAddressName(endpoint.String(), "exists"), file}); err != nil {
t.Fatalf("%v", err)
}
}