1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-12 02:30:53 +09:00

GO-4360 Fix migrator test

This commit is contained in:
kirillston 2024-11-11 18:24:29 +01:00
parent eb628d47c5
commit 582328e89f
No known key found for this signature in database
GPG key ID: 88218A7F1109754B

View file

@ -60,7 +60,7 @@ func TestRunner(t *testing.T) {
return nil
}
},
)
).Maybe()
runner := Runner{ctx: ctx, spc: space, store: store}
// when
@ -85,7 +85,8 @@ func TestRunner(t *testing.T) {
// when
go func() {
time.Sleep(10 * time.Millisecond)
// TODO: GO-4444 Migration runner wastes much time to get 2 store indexes instead of 1
time.Sleep(20 * time.Millisecond)
cancel()
}()
err := runner.run(instantMigration{})