From 7a7a402649b40de0eeb73cc60a252a2f29a9f621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Fri, 23 Apr 2021 00:28:46 +0200 Subject: [PATCH] github: attempt to fix a CI issue --- bridge/github/export_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridge/github/export_test.go b/bridge/github/export_test.go index 78425e60f867439a87195e26d260da70c0d5a5c6..1d1398a9c6b1c2fe473776e2d828ae22a873e500 100644 --- a/bridge/github/export_test.go +++ b/bridge/github/export_test.go @@ -173,6 +173,10 @@ func TestGithubPushPull(t *testing.T) { fmt.Println("created repository", projectName) + // Let Github handle the repo creation and update all their internal caches. + // Avoid HTTP error 404 retrieving repository node id + time.Sleep(10 * time.Second) + // Make sure to remove the Github repository when the test end defer func(t *testing.T) { if err := deleteRepository(projectName, envUser, envToken); err != nil {