diff --git a/pkg/clients/db_client_test.go b/pkg/clients/db_client_test.go index 2929cdcf..88a005ec 100644 --- a/pkg/clients/db_client_test.go +++ b/pkg/clients/db_client_test.go @@ -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) {