@@ -49,7 +49,7 @@ func (s) TestNoNonEmptyTargetsReturnsError(t *testing.T) {
49
49
// Setup RLS Server to return a response with an empty target string.
50
50
rlsServer , rlsReqCh := rlstest .SetupFakeRLSServer (t , nil )
51
51
rlsServer .SetResponseCallback (func (_ context.Context , req * rlspb.RouteLookupRequest ) * rlstest.RouteLookupResponse {
52
- return & rlstest.RouteLookupResponse {Resp : & rlspb.RouteLookupResponse {Targets : [] string { "" } }}
52
+ return & rlstest.RouteLookupResponse {Resp : & rlspb.RouteLookupResponse {}}
53
53
})
54
54
55
55
// Register a manual resolver and push the RLS service config through it.
@@ -67,7 +67,7 @@ func (s) TestNoNonEmptyTargetsReturnsError(t *testing.T) {
67
67
// target list does not contain any non empty entries.
68
68
ctx , cancel := context .WithTimeout (context .Background (), defaultTestTimeout )
69
69
defer cancel ()
70
- makeTestRPCAndVerifyError (ctx , t , cc , codes .Unavailable , errors .New ("RLS response's target list does not contain any non-empty entries for key" ))
70
+ makeTestRPCAndVerifyError (ctx , t , cc , codes .Unavailable , errors .New ("RLS response's target list does not contain any entries for key" ))
71
71
72
72
// Make sure an RLS request is sent out. Even though the RLS Server will
73
73
// return no targets, the request should still hit the server.
@@ -161,7 +161,7 @@ func (s) TestPick_DataCacheMiss_NoPendingEntry_NotThrottled(t *testing.T) {
161
161
// smaller timeout to ensure that the test doesn't run very long.
162
162
ctx , cancel := context .WithTimeout (context .Background (), defaultTestShortTimeout )
163
163
defer cancel ()
164
- makeTestRPCAndVerifyError (ctx , t , cc , codes .Unavailable , errors .New ("RLS response's target list does not contain any non-empty entries for key" ))
164
+ makeTestRPCAndVerifyError (ctx , t , cc , codes .Unavailable , errors .New ("RLS response's target list does not contain any entries for key" ))
165
165
166
166
// Make sure an RLS request is sent out.
167
167
verifyRLSRequest (t , rlsReqCh , true )
0 commit comments