chore: Upgrade to Go 1.19 (#3617)

This is required as part of #3505.
This commit is contained in:
Kyle Carberry
2022-08-21 17:32:53 -05:00
committed by GitHub
parent d37fb054c8
commit b0fe9bcdd1
52 changed files with 144 additions and 86 deletions

View File

@ -14,6 +14,7 @@ import (
"github.com/coder/coder/coderd/database/postgres"
)
// nolint:tparallel,paralleltest
func TestPubsub(t *testing.T) {
t.Parallel()
@ -22,10 +23,7 @@ func TestPubsub(t *testing.T) {
return
}
// nolint:paralleltest
t.Run("Postgres", func(t *testing.T) {
// postgres.Open() seems to be creating race conditions when run in parallel.
// t.Parallel()
ctx, cancelFunc := context.WithCancel(context.Background())
defer cancelFunc()
@ -54,10 +52,7 @@ func TestPubsub(t *testing.T) {
assert.Equal(t, string(message), data)
})
// nolint:paralleltest
t.Run("PostgresCloseCancel", func(t *testing.T) {
// postgres.Open() seems to be creating race conditions when run in parallel.
// t.Parallel()
ctx, cancelFunc := context.WithCancel(context.Background())
defer cancelFunc()
connectionURL, closePg, err := postgres.Open()