chore: Improve CI builds by caching Go modules (#528)

* chore: Improve CI builds by caching Go modules

* Skip running with `race` on non-Linux systems

* Fix darwin file descriptor error

* Fix log after close

* Improve PostgreSQL test speeds

* Fix parallel connections with PostgreSQL tests

* Fix CI flake

* Separate test/go into PostgreSQL
This commit is contained in:
Kyle Carberry
2022-03-22 17:09:04 -05:00
committed by GitHub
parent ebae1b9af9
commit 26d24f4508
7 changed files with 172 additions and 54 deletions
+3 -3
View File
@@ -31,14 +31,14 @@ func TestStart(t *testing.T) {
err := root.ExecuteContext(ctx)
require.ErrorIs(t, err, context.Canceled)
}()
var accessURL string
var token string
require.Eventually(t, func() bool {
var err error
accessURL, err = cfg.URL().Read()
token, err = cfg.Session().Read()
return err == nil
}, 15*time.Second, 25*time.Millisecond)
// Verify that authentication was properly set in dev-mode.
token, err := cfg.Session().Read()
accessURL, err := cfg.URL().Read()
require.NoError(t, err)
parsed, err := url.Parse(accessURL)
require.NoError(t, err)