@@ -157,7 +157,7 @@ func TestNotification(t *testing.T) {
157157func TestFetchFromAPIServer (t * testing.T ) {
158158 testSA := & v1.ServiceAccount {
159159 ObjectMeta : metav1.ObjectMeta {
160- Name : "default " ,
160+ Name : "my-sa " ,
161161 Namespace : "default" ,
162162 Annotations : map [string ]string {
163163 "eks.amazonaws.com/role-arn" : "arn:aws:iam::111122223333:role/s3-reader" ,
@@ -196,15 +196,15 @@ func TestFetchFromAPIServer(t *testing.T) {
196196 t .Fatalf ("informer never called client: %v" , err )
197197 }
198198
199- resp := cache .Get (Request {Name : "default " , Namespace : "default" , RequestNotification : true })
199+ resp := cache .Get (Request {Name : "my-sa " , Namespace : "default" , RequestNotification : true })
200200 assert .False (t , resp .FoundInCache , "Expected cache entry to not be found" )
201201
202202 // wait for the notification while we fetch the SA from the API server:
203203 select {
204204 case <- resp .Notifier :
205205 // expected
206206 // test that the requested SA is now in the cache
207- resp := cache .Get (Request {Name : "default " , Namespace : "default" , RequestNotification : false })
207+ resp := cache .Get (Request {Name : "my-sa " , Namespace : "default" , RequestNotification : false })
208208 assert .True (t , resp .FoundInCache , "Expected cache entry to be found in cache" )
209209 case <- time .After (1 * time .Second ):
210210 t .Fatal ("timeout waiting for notification" )
0 commit comments