Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Oct 2, 2024
1 parent 09f2320 commit ee75bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/clients/db_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
func TestConnectionString(t *testing.T) {
r := require.New(t)
c := buildConnectionString("host", "user", "pass", 6875, "database", "require", "tf")
r.Equal(`postgres://user:pass@host:6875/database?application_name=tf&sslmode=require`, c)
r.Equal(`postgres://user:pass@host:6875/database?application_name=tf&options=--transaction_isolation%3Dstrict%5C+serializable&sslmode=require`, c)
}

func TestConnectionStringTesting(t *testing.T) {
r := require.New(t)
c := buildConnectionString("host", "user", "pass", 6875, "database", "disable", "tf")
r.Equal(`postgres://user:pass@host:6875/database?application_name=tf&sslmode=disable`, c)
r.Equal(`postgres://user:pass@host:6875/database?application_name=tf&options=--transaction_isolation%3Dstrict%5C+serializable&sslmode=disable`, c)
}

func TestNewDBClientFailure(t *testing.T) {
Expand Down

0 comments on commit ee75bb1

Please sign in to comment.