fix coverage (#1741)

* fix coverage

* fix data races
This commit is contained in:
Caleb Doxsey 2021-01-06 08:30:38 -07:00 committed by GitHub
parent 6ea8d34b8f
commit 4f0ce4bc82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 21 deletions

View file

@ -91,7 +91,7 @@ func TestGetGRPC(t *testing.T) {
return
}
assert.Equal(t, cc1, cc2, "GetGRPCClientConn should return the same connection when there are no changes")
assert.Same(t, cc1, cc2, "GetGRPCClientConn should return the same connection when there are no changes")
cc3, err := GetGRPCClientConn("example", &Options{
Addr: mustParseURL("http://localhost.example"),
@ -101,7 +101,7 @@ func TestGetGRPC(t *testing.T) {
return
}
assert.NotEqual(t, cc1, cc3, "GetGRPCClientConn should return a new connection when there are changes")
assert.NotSame(t, cc1, cc3, "GetGRPCClientConn should return a new connection when there are changes")
}
func mustParseURL(rawurl string) *url.URL {