credentials/local: fix incorrect binding of listener port (#3656)

This commit is contained in:
yihuaz 2020-06-01 14:55:19 -07:00 committed by GitHub
parent 806b6fc596
commit a085b3e7f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -163,17 +163,17 @@ func (s) TestServerAndClientHandshake(t *testing.T) {
}{
{
testNetwork: "tcp",
testAddr: "127.0.0.1:10000",
testAddr: "127.0.0.1:0",
want: credentials.NoSecurity,
},
{
testNetwork: "tcp",
testAddr: "[::1]:10000",
testAddr: "[::1]:0",
want: credentials.NoSecurity,
},
{
testNetwork: "tcp",
testAddr: "localhost:10000",
testAddr: "localhost:0",
want: credentials.NoSecurity,
},
{