feat: more meaningful error messages, close body on httpc requests (#2238)

* feat: more meaningful error messages, close body on httpc requests

* fix: test failure
This commit is contained in:
Kevin Wan
2022-08-07 16:09:54 +08:00
committed by GitHub
parent c1c7584de1
commit a987512c7b
5 changed files with 26 additions and 5 deletions

View File

@@ -13,5 +13,5 @@ func TestBuildDirectTarget(t *testing.T) {
func TestBuildDiscovTarget(t *testing.T) {
target := BuildDiscovTarget([]string{"localhost:123", "localhost:456"}, "foo")
assert.Equal(t, "discov://localhost:123,localhost:456/foo", target)
assert.Equal(t, "etcd://localhost:123,localhost:456/foo", target)
}