Skip to content

Commit

Permalink
e2e: add delay after registering Repository (#3741)
Browse files Browse the repository at this point in the history
I believe this will help avoid the "failed to list resources" error
immediately after registering a repository.
  • Loading branch information
justinsb committed Jan 19, 2023
1 parent af926a0 commit 3a99e3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions porch/test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2152,6 +2152,11 @@ func (t *PorchSuite) registerGitRepositoryF(ctx context.Context, repo, name, dir
},
})

// TODO: Replace with readiness check or similar, once we get to CRDs
// Sometimes we see "failed to list resources" here, I believe because we need to wait for the repository to be crawled.
t.Logf("HACK: sleeping for 5 seconds to allow for repository registration")
time.Sleep(5 * time.Second)

t.Cleanup(func() {
t.DeleteL(ctx, &configapi.Repository{
ObjectMeta: metav1.ObjectMeta{
Expand Down

0 comments on commit 3a99e3a

Please sign in to comment.