diff --git a/.github/workflows/test-code.yml b/.github/workflows/test-code.yml index 7a7f2e0..95a81df 100644 --- a/.github/workflows/test-code.yml +++ b/.github/workflows/test-code.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '^1.19' + go-version: '^1.20' - run: go generate ./... - run: go test ./... -parallel 8 --tags=test,awsmock - run: go clean -testcache diff --git a/internal/configuration/setup/Setup_test.go b/internal/configuration/setup/Setup_test.go index 44a73ce..1fcbb2c 100644 --- a/internal/configuration/setup/Setup_test.go +++ b/internal/configuration/setup/Setup_test.go @@ -318,6 +318,7 @@ func TestIntegration(t *testing.T) { Body: strings.NewReader(setupValues.toJson()), }) + time.Sleep(5 * time.Second) checkServerStatus(t, false) test.FileExists(t, "test/config.json") settings := configuration.Get() @@ -391,6 +392,7 @@ func TestIntegration(t *testing.T) { Body: strings.NewReader(setupInput.toJson()), }) + time.Sleep(5 * time.Second) checkServerStatus(t, false) test.FileExists(t, "test/config.json") @@ -438,6 +440,7 @@ func TestIntegration(t *testing.T) { Body: strings.NewReader(setupInput.toJson()), }) + time.Sleep(5 * time.Second) checkServerStatus(t, false) test.IsEqualBool(t, settings.PicturesAlwaysLocal, true)