Skip to content

Commit

Permalink
Few formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bstrausser committed Apr 26, 2024
1 parent 5d8598f commit dffe996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions modules/postgres/postgres.go
Expand Up @@ -22,10 +22,8 @@ const (
defaultSnapshotName = "migrated_template"
)

var (
//go:embed resources/customEntrypoint.sh
embeddedCustomEntrypoint string
)
//go:embed resources/customEntrypoint.sh
var embeddedCustomEntrypoint string

// PostgresContainer represents the postgres container type used in the module
type PostgresContainer struct {
Expand Down
6 changes: 2 additions & 4 deletions modules/postgres/postgres_test.go
Expand Up @@ -33,7 +33,7 @@ func createSSLCerts(t *testing.T) (*tlscert.Certificate, *tlscert.Certificate, e
tmpDir := t.TempDir()
certsDir := tmpDir + "/certs"

if err := os.MkdirAll(certsDir, 0755); err != nil {
if err := os.MkdirAll(certsDir, 0o755); err != nil {
t.Fatal(err)
}

Expand All @@ -48,7 +48,6 @@ func createSSLCerts(t *testing.T) (*tlscert.Certificate, *tlscert.Certificate, e
})

if caCert == nil {

return caCert, nil, errors.New("Unable to create CA Authority")
}

Expand Down Expand Up @@ -278,7 +277,6 @@ func TestWithSSL(t *testing.T) {
}

func TestSSLValidatesKeyMaterialPath(t *testing.T) {

ctx := context.Background()

sslSettings := postgres.SSLSettings{}
Expand All @@ -295,8 +293,8 @@ func TestSSLValidatesKeyMaterialPath(t *testing.T) {
if err == nil {
t.Fatal(err)
}

}

func TestWithInitScript(t *testing.T) {
ctx := context.Background()

Expand Down

0 comments on commit dffe996

Please sign in to comment.