From b818c1cf7abe2590db4500d9dd1350d8d63f39d2 Mon Sep 17 00:00:00 2001 From: Ibrahim Serdar Acikgoz Date: Wed, 22 Mar 2023 15:56:47 +0300 Subject: [PATCH] do not unset any env var --- server/channels/store/storetest/settings.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/channels/store/storetest/settings.go b/server/channels/store/storetest/settings.go index 2b8417d3b6..b700441445 100644 --- a/server/channels/store/storetest/settings.go +++ b/server/channels/store/storetest/settings.go @@ -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())