@@ -150,7 +150,6 @@ func TestDevAPITriggers(t *testing.T) {
150
150
skaffold .Dev ("--auto-build=false" , "--auto-sync=false" , "--auto-deploy=false" , "--rpc-port" , rpcAddr , "--cache-artifacts=false" ).InDir ("testdata/dev" ).InNs (ns .Name ).RunBackground (t )
151
151
152
152
rpcClient , entries := apiEvents (t , rpcAddr )
153
-
154
153
dep := client .GetDeployment (testDev )
155
154
156
155
// Make a change to foo
@@ -194,12 +193,6 @@ func TestDevAPIAutoTriggers(t *testing.T) {
194
193
skaffold .Dev ("--auto-build=false" , "--auto-sync=false" , "--auto-deploy=false" , "--rpc-port" , rpcAddr , "--cache-artifacts=false" ).InDir ("testdata/dev" ).InNs (ns .Name ).RunBackground (t )
195
194
196
195
rpcClient , entries := apiEvents (t , rpcAddr )
197
-
198
- // throw away first 5 entries of log (from first run of dev loop)
199
- for i := 0 ; i < 5 ; i ++ {
200
- <- entries
201
- }
202
-
203
196
dep := client .GetDeployment (testDev )
204
197
205
198
// Make a change to foo
@@ -237,7 +230,7 @@ func verifyDeployment(t *testing.T, entries chan *proto.LogEntry, client *NSKube
237
230
failNowIfError (t , err )
238
231
239
232
// Make sure the old Deployment and the new Deployment are different
240
- err = wait .Poll (time .Millisecond * 500 , 1 * time .Minute , func () (bool , error ) {
233
+ err = wait .Poll (5 * time .Second , 3 * time .Minute , func () (bool , error ) {
241
234
newDep := client .GetDeployment (testDev )
242
235
t .Logf ("old gen: %d, new gen: %d" , dep .GetGeneration (), newDep .GetGeneration ())
243
236
return dep .GetGeneration () != newDep .GetGeneration (), nil
0 commit comments