@@ -89,7 +89,6 @@ func sendRequests(client spoof.Interface, domain string, num int) ([]string, err
89
89
return nil
90
90
})
91
91
}
92
-
93
92
return responses , g .Wait ()
94
93
}
95
94
@@ -208,14 +207,22 @@ func TestBlueGreenRoute(t *testing.T) {
208
207
t .Fatalf ("Configuration %s was not updated with the Revision for image %s: %v" , names .Config , image2 , err )
209
208
}
210
209
211
- // TODO(#882): Remove these?
210
+ // We should only need to wait until the Revision is routable,
211
+ // i.e. Ready or Inactive. At that point, activator could start
212
+ // queuing requests until the Revision wakes up. However, due to
213
+ // #882 we are currently lumping the inactive splits and that
214
+ // would result in 100% requests reaching Blue or Green.
215
+ //
216
+ // TODO: After we implement #1583 and honor the split percentage
217
+ // for inactive cases, change this wait to allow for inactive
218
+ // revisions as well.
212
219
logger .Infof ("Waiting for revision %q to be ready" , blue .Revision )
213
220
if err := test .WaitForRevisionState (clients .ServingClient , blue .Revision , test .IsRevisionReady , "RevisionIsReady" ); err != nil {
214
- t .Fatalf ("The Revision %q was not marked as Ready : %v" , blue .Revision , err )
221
+ t .Fatalf ("The Revision %q still can't serve traffic : %v" , blue .Revision , err )
215
222
}
216
223
logger .Infof ("Waiting for revision %q to be ready" , green .Revision )
217
224
if err := test .WaitForRevisionState (clients .ServingClient , green .Revision , test .IsRevisionReady , "RevisionIsReady" ); err != nil {
218
- t .Fatalf ("The Revision %q was not marked as Ready : %v" , green .Revision , err )
225
+ t .Fatalf ("The Revision %q still can't serve traffic : %v" , green .Revision , err )
219
226
}
220
227
221
228
// Set names for traffic targets to make them directly routable.
0 commit comments