veyron/services/wsprd/app: Undo test hack.
Review comments in the commit that motivated this hack have
rendered this hack unnecessary.
Background: https://veyron-review.googlesource.com/#/c/5401/
Change-Id: I02faf6f10e775fd24533ed35645c4a6e6ecd1e61
diff --git a/services/wsprd/app/app_test.go b/services/wsprd/app/app_test.go
index 97046fd..51243aa 100644
--- a/services/wsprd/app/app_test.go
+++ b/services/wsprd/app/app_test.go
@@ -4,7 +4,6 @@
"encoding/json"
"fmt"
"reflect"
- "strings"
"testing"
"veyron.io/veyron/veyron2"
@@ -585,7 +584,7 @@
"Handle": 2.0,
"Names": names,
},
- "localEndpoint": hackEndpointStringForOldSecurityModel(endpoint.String()),
+ "localEndpoint": endpoint.String(),
"remoteEndpoint": "remoteEndpoint",
},
},
@@ -641,7 +640,7 @@
"Handle": 4.0,
"Names": names,
},
- "localEndpoint": hackEndpointStringForOldSecurityModel(endpoint.String()),
+ "localEndpoint": endpoint.String(),
"remoteEndpoint": "remoteEndpoint",
},
},
@@ -850,12 +849,3 @@
}
}
}
-
-// TODO(ashankar): Remove this when WSPRD is switched to using the new security API.
-func hackEndpointStringForOldSecurityModel(str string) string {
- suffix := "@4@@"
- if strings.HasSuffix(str, suffix) {
- return strings.TrimSuffix(str, suffix) + "@2@@"
- }
- return str
-}