File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -654,6 +654,14 @@ func (t *PorchSuite) TestFunctionRepository(ctx context.Context) {
654
654
// avoid flakiness.
655
655
t .waitUntilRepositoryReady (ctx , repo .Name , repo .Namespace )
656
656
657
+ // Wait here for the repository to be cached in porch. We wait
658
+ // first one minute, since Porch waits 1 minute before it syncs
659
+ // the repo for the first time. Then wait another minute so that
660
+ // the sync has (hopefully) finished.
661
+ // TODO(mortent): We need a better solution for this. This is only
662
+ // temporary to fix the current flakiness with the e2e tests.
663
+ <- time .NewTimer (2 * time .Minute ).C
664
+
657
665
list := & porchapi.FunctionList {}
658
666
t .ListE (ctx , list , client .InNamespace (t .namespace ))
659
667
You can’t perform that action at this time.
0 commit comments