Skip to content

Commit

Permalink
Tests: define requisites explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesovsky committed Dec 19, 2020
1 parent 0ea25ec commit 98a6ce9
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
postgres:
image: postgres:13-alpine
env:
POSTGRES_USER: postgres
POSTGRES_DB: noisia_fixtures
POSTGRES_USER: noisia
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
postgres:
image: postgres:13-alpine
env:
POSTGRES_USER: postgres
POSTGRES_DB: noisia_fixtures
POSTGRES_USER: noisia
POSTGRES_PASSWORD: ""
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
Expand Down
2 changes: 1 addition & 1 deletion deadlocks/deadlocks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestWorkload_Run(t *testing.T) {
config := &Config{
PostgresConninfo: "host=postgres",
PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures",
Jobs: 2,
}

Expand Down
2 changes: 1 addition & 1 deletion failconns/failconns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func TestWorkload_Run(t *testing.T) {
config := &Config{
PostgresConninfo: "host=postgres",
PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures",
}

ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
Expand Down
2 changes: 1 addition & 1 deletion idlexacts/idlexacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestWorkload_Run(t *testing.T) {
config := &Config{
PostgresConninfo: "host=postgres",
PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures",
Jobs: 2,
IdleXactsNaptimeMin: 1,
IdleXactsNaptimeMax: 2,
Expand Down
2 changes: 1 addition & 1 deletion rollbacks/rollbacks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestWorkload_Run(t *testing.T) {
config := &Config{PostgresConninfo: "host=postgres", Jobs: 2, MinRate: 2, MaxRate: 2}
config := &Config{PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures", Jobs: 2, MinRate: 2, MaxRate: 2}

ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()
Expand Down
2 changes: 1 addition & 1 deletion tempfiles/tempfiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestWorkload_Run(t *testing.T) {
config := &Config{
PostgresConninfo: "host=postgres",
PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures",
Jobs: 2,
TempFilesRate: 2,
TempFilesScaleFactor: 10,
Expand Down
2 changes: 1 addition & 1 deletion terminate/terminate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestWorkload_Run(t *testing.T) {
config := &Config{
PostgresConninfo: "host=postgres",
PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures",
TerminateRate: 4,
IgnoreSystemBackends: true,
SoftMode: false,
Expand Down
2 changes: 1 addition & 1 deletion waitxacts/waitxacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func TestWorkload_Run(t *testing.T) {
config := &Config{
PostgresConninfo: "host=postgres",
PostgresConninfo: "host=postgres user=noisia database=noisia_fixtures",
Jobs: 2,
WaitXactsLocktimeMin: 1,
WaitXactsLocktimeMax: 2,
Expand Down

0 comments on commit 98a6ce9

Please sign in to comment.