Skip to content

Commit 5f582dc

Browse files
alanshawCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e9ba77c commit 5f582dc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

pkg/fx/app_test.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@ func TestAppModuleStorageSelection(t *testing.T) {
2020
})
2121

2222
t.Run("postgres", func(t *testing.T) {
23-
cfg := &config.Config{Storage: config.StorageConfig{Type: config.StorageTypePostgres}}
23+
cfg := &config.Config{Storage: config.StorageConfig{
24+
Type: config.StorageTypePostgres,
25+
Postgres: config.PostgresConfig{DSN: "postgres://hilt:hilt@localhost:5432/hilt?sslmode=disable"},
26+
}}
2427
require.NoError(t, validate(cfg))
2528
})
2629

2730
t.Run("empty defaults to postgres", func(t *testing.T) {
28-
cfg := &config.Config{Storage: config.StorageConfig{Type: ""}}
31+
cfg := &config.Config{Storage: config.StorageConfig{
32+
Type: "",
33+
Postgres: config.PostgresConfig{DSN: "postgres://hilt:hilt@localhost:5432/hilt?sslmode=disable"},
34+
}}
2935
require.NoError(t, validate(cfg))
3036
})
3137

0 commit comments

Comments
 (0)