diff --git a/internal/bundb/api_key_test.go b/internal/bundb/api_key_test.go index 3f8f864..222968f 100644 --- a/internal/bundb/api_key_test.go +++ b/internal/bundb/api_key_test.go @@ -17,6 +17,10 @@ import ( func TestAPIKey_Create(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + db := newDB(t) fixture := loadFixtures(t, db) repo := bundb.NewAPIKey(db) @@ -71,6 +75,10 @@ func TestAPIKey_Create(t *testing.T) { func TestAPIKey_Get(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + db := newDB(t) fixture := loadFixtures(t, db) repo := bundb.NewAPIKey(db) diff --git a/internal/bundb/checker_test.go b/internal/bundb/checker_test.go index 9ef1c1d..2bf891c 100644 --- a/internal/bundb/checker_test.go +++ b/internal/bundb/checker_test.go @@ -17,5 +17,9 @@ func TestChecker_Name(t *testing.T) { func TestChecker_Check(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + assert.NoError(t, bundb.NewChecker(newDB(t)).Check(context.Background())) } diff --git a/internal/bundb/session_test.go b/internal/bundb/session_test.go index 8feed58..8b69904 100644 --- a/internal/bundb/session_test.go +++ b/internal/bundb/session_test.go @@ -17,6 +17,10 @@ import ( func TestSession_CreateOrUpdate(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + db := newDB(t) fixture := loadFixtures(t, db) repo := bundb.NewSession(db) @@ -78,6 +82,10 @@ func TestSession_CreateOrUpdate(t *testing.T) { func TestSession_Get(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + db := newDB(t) fixture := loadFixtures(t, db) repo := bundb.NewSession(db) diff --git a/internal/bundb/user_test.go b/internal/bundb/user_test.go index 91bf79c..7f7d703 100644 --- a/internal/bundb/user_test.go +++ b/internal/bundb/user_test.go @@ -15,6 +15,10 @@ import ( func TestUser_Create(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + db := newDB(t) fixture := loadFixtures(t, db) repo := bundb.NewUser(db) @@ -64,6 +68,10 @@ func TestUser_Create(t *testing.T) { func TestUser_Get(t *testing.T) { t.Parallel() + if testing.Short() { + t.Skip("skipping long-running test") + } + db := newDB(t) fixture := loadFixtures(t, db) repo := bundb.NewUser(db)