mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
@ -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()
|
||||
|
Reference in New Issue
Block a user