1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 17:44:59 +09:00

GO-4779: Tweak flickering test

This commit is contained in:
Sergey 2025-03-03 15:31:58 +01:00
parent abb48ea586
commit f192d3ca59
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6

View file

@ -62,6 +62,7 @@ func TestService_Search(t *testing.T) {
}
t.Run("dependencies", func(t *testing.T) {
fx := newFixture(t)
defer fx.a.Close(context.Background())
defer fx.ctrl.Finish()
@ -83,7 +84,7 @@ func TestService_Search(t *testing.T) {
require.NoError(t, err)
// Wait enough time to flush pending updates to subscriptions handler
time.Sleep(batchTime + 3*time.Millisecond)
time.Sleep(batchTime + 4*time.Millisecond)
spaceSub.onChange([]*entry{
newEntry("1", domain.NewDetailsFromMap(map[domain.RelationKey]domain.Value{