Passing t to all tests setup functions (#13841)

* Passing t to all tests setup functions

* Fixing build
Этот коммит содержится в:
Jesús Espino
2020-02-10 19:31:41 +01:00
коммит произвёл GitHub
родитель 3b732fe257
Коммит 1d1ab03c38
73 изменённых файлов: 646 добавлений и 632 удалений

Просмотреть файл

@@ -20,6 +20,9 @@ func getDsn(driver string, source string) string {
}
func TestMigrateDatabaseToFile(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
helper := testlib.NewMainHelper()
sqlSettings := helper.GetSQLSettings()
fileDSN := "config.json"
@@ -62,6 +65,9 @@ func TestMigrateDatabaseToFile(t *testing.T) {
}
func TestMigrateFileToDatabaseWhenFilePathIsNotSpecified(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
helper := testlib.NewMainHelper()
sqlSettings := helper.GetSQLSettings()
fileDSN := "config.json"

Просмотреть файл

@@ -14,6 +14,9 @@ import (
)
func TestNewStore(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
sqlSettings := mainHelper.GetSQLSettings()
tempDir, err := ioutil.TempDir("", "TestNewStore")