fix expected error message in gateway test
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Oct 30, 2018 at 10:36 UTC
d98351720ab9d6df37fe82c94e6a72c58ced388f
1 file changed
+1
-1
core/corehttp/gateway_test.go
+1
-1
@@ -188,7 +188,7 @@ func TestGatewayGet(t *testing.T) {
188
{"working.example.com", "/", http.StatusOK, "fnord"},
189
{"double.example.com", "/", http.StatusOK, "fnord"},
190
{"triple.example.com", "/", http.StatusOK, "fnord"},
191
- {"working.example.com", "/ipfs/" + k, http.StatusNotFound, "ipfs resolve -r /ipns/working.example.com/ipfs/" + k + ": no link by that name\n"},
191
+ {"working.example.com", "/ipfs/" + k, http.StatusNotFound, "ipfs resolve -r /ipns/working.example.com/ipfs/" + k + ": no link named \"ipfs\" under " + k + "\n"},
192
{"broken.example.com", "/", http.StatusNotFound, "ipfs resolve -r /ipns/broken.example.com/: " + namesys.ErrResolveFailed.Error() + "\n"},
193
{"broken.example.com", "/ipfs/" + k, http.StatusNotFound, "ipfs resolve -r /ipns/broken.example.com/ipfs/" + k + ": " + namesys.ErrResolveFailed.Error() + "\n"},
194
// This test case ensures we don't treat the TLD as a file extension.