Skip to content

Commit b9f7967

Browse files
xds/resolver: remove unnecessary error check in test (grpc#8955)
`xdsclient.NewPool` does not return an error , but there is a check for error in the next line. This PR removes the unnecessary error check in test. RELEASE NOTES: None
1 parent 549306a commit b9f7967

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/xds/resolver/xds_resolver_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,6 @@ func (s) TestResolverCloseClosesXDSClient(t *testing.T) {
262262
t.Fatalf("Failed to parse bootstrap contents: %s, %v", string(bc), err)
263263
}
264264
pool := xdsclient.NewPool(config)
265-
if err != nil {
266-
t.Fatalf("Failed to create an xDS client pool: %v", err)
267-
}
268265
c, cancel, err := pool.NewClientForTesting(xdsclient.OptionsForTesting{
269266
Name: t.Name(),
270267
WatchExpiryTimeout: defaultTestTimeout,

0 commit comments

Comments
 (0)