Skip to content

Commit

Permalink
do not unset any env var
Browse files Browse the repository at this point in the history
  • Loading branch information
isacikgoz committed Mar 22, 2023
1 parent 2ab4c68 commit b818c1c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/channels/store/storetest/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ func PostgreSQLSettings() *model.SqlSettings {
mlog.Info("Using TEST_DATABASE_POSTGRESQL_DSN override", mlog.String("dsn", dsn))
}

if os.Getenv("MM_SQLSETTINGS_DATASOURCE") != "" {
os.Unsetenv("MM_SQLSETTINGS_DATASOURCE")
mlog.Info("Clearing MM_SQLSETTINGS_DATASOURCE to use test dsn exclusively")
}

dsnURL, err := url.Parse(dsn)
if err != nil {
panic("failed to parse dsn " + dsn + ": " + err.Error())
Expand Down

0 comments on commit b818c1c

Please sign in to comment.