File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments