Skip flaky test (#45785) (#45799)

(cherry picked from commit 3cfbbbdbf2)

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-02-23 17:09:58 +01:00
committed by GitHub
co-authored by Sofia Papagiannaki
parent 884b573c0b
commit 1c10ae4106
@@ -155,6 +155,11 @@ func TestMigrationLock(t *testing.T) {
func TestMigratorLocking(t *testing.T) {
dbType := getDBType()
testDB := getTestDB(t, dbType)
// skip for SQLite for now since it occasionally fails for not clear reason
// anyway starting migrations concurretly for the same migrator is impossible use case
if dbType == SQLite {
t.Skip()
}
x, err := xorm.NewEngine(testDB.DriverName, testDB.ConnStr)
require.NoError(t, err)
@@ -181,7 +186,7 @@ func TestMigratorLocking(t *testing.T) {
})
}
})
assert.Equal(t, int64(1), errorNum)
assert.Equal(t, int64(1), atomic.LoadInt64(&errorNum))
}
func TestDatabaseLocking(t *testing.T) {