Skip to content

Commit

Permalink
Remove unstable addresses from test names
Browse files Browse the repository at this point in the history
Signed-off-by: albertteoh <[email protected]>
  • Loading branch information
albertteoh committed Sep 18, 2020
1 parent 501a80d commit 32e5ab6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/query/app/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,18 @@ func TestServerInUseHostPort(t *testing.T) {
httpHostPort string
grpcHostPort string
}{
{"HTTP host port clash on " + conn.Addr().String(), conn.Addr().String(), availableHostPort},
{"GRPC host port clash on " + conn.Addr().String(), availableHostPort, conn.Addr().String()},
{"HTTP host port clash", conn.Addr().String(), availableHostPort},
{"GRPC host port clash", availableHostPort, conn.Addr().String()},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
server, err := NewServer(
zap.NewNop(),
&querysvc.QueryService{},
zap.NewNop(),
&querysvc.QueryService{},
&QueryOptions{
HTTPHostPort: tc.httpHostPort,
GRPCHostPort: tc.grpcHostPort,
BearerTokenPropagation: true,
HTTPHostPort: tc.httpHostPort,
GRPCHostPort: tc.grpcHostPort,
BearerTokenPropagation: true,
},
opentracing.NoopTracer{},
)
Expand Down

0 comments on commit 32e5ab6

Please sign in to comment.