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 удалений

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

@@ -147,15 +147,15 @@ func setupTestHelper(enterprise bool, updateConfig func(*model.Config)) *TestHel
return th
}
func SetupEnterprise() *TestHelper {
func SetupEnterprise(tb testing.TB) *TestHelper {
return setupTestHelper(true, nil)
}
func Setup() *TestHelper {
func Setup(tb testing.TB) *TestHelper {
return setupTestHelper(false, nil)
}
func SetupConfig(updateConfig func(cfg *model.Config)) *TestHelper {
func SetupConfig(tb testing.TB, updateConfig func(cfg *model.Config)) *TestHelper {
return setupTestHelper(false, updateConfig)
}