Passing t to all tests setup functions (#13841)
* Passing t to all tests setup functions * Fixing build
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3b732fe257
Коммит
1d1ab03c38
@@ -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")
|
||||
|
||||
Ссылка в новой задаче
Block a user