Skip database-reliant tests during short mode unit testing (#17771)

Automatic Merge
Этот коммит содержится в:
James Addison
2021-06-14 11:10:23 +01:00
коммит произвёл GitHub
родитель 723902f4cb
Коммит 857c5e562f
2 изменённых файлов: 7 добавлений и 0 удалений

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

@@ -8,6 +8,10 @@ import (
)
func TestVersion(t *testing.T) {
if testing.Short() {
t.Skip("skipping version test in short mode")
}
th := SetupWithStoreMock(t)
defer th.TearDown()

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

@@ -18,6 +18,9 @@ import (
type cleanUpFn func(store *Store)
func TestMigrate(t *testing.T) {
if testing.Short() {
t.Skip("skipping migration test in short mode")
}
files := []string{
"IdpCertificateFile",
"PublicCertificateFile",