Opened 2 years ago

Closed 2 years ago

#4937 closed defect (fixed)

Unit tests have race conditions because we are not waiting for initialized state

Reported by: sergz Assignee:
Priority: P4 Milestone:
Module: Libadblockplus Keywords:
Cc: Blocked By:
Blocking: #4938 Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

adblockpluscore triggers many events during initialization and we are not waiting for finishing of the initialization. E.g. in FilterEngineTest, SetRemoveFilterChangeCallback sometimes we count also "load" event from FilterNotifier and the test fails because the actual number of calls is 2 but 1 is expected.

Change History (4)

comment:1 Changed 2 years ago by sergz

  • Blocked By 4938 added

comment:2 Changed 2 years ago by sergz

  • Blocked By 4938 removed

comment:3 Changed 2 years ago by sergz

  • Blocking 4938 added

comment:4 Changed 2 years ago by sergz

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.