mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-13 00:58:06 +02:00
parent
6ea8d34b8f
commit
4f0ce4bc82
5 changed files with 18 additions and 21 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue