Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java

Issue 29347315: Issue 4231 - Fix unstable FilterEngineTest.testSetRemoveFilterChangeCallback (Closed)
Patch Set: Created July 7, 2016, 10:22 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
===================================================================
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
+++ b/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineGenericTest.java
@@ -28,10 +28,16 @@
protected void setUp() throws Exception
{
super.setUp();
jsEngine.setWebRequest(new LazyWebRequest());
jsEngine.setDefaultLogSystem();
filterEngine = new FilterEngine(jsEngine);
+
+ // JsEngine has built-in default subscriptions
+ while (filterEngine.getListedSubscriptions().size() > 0)
sergei 2016/07/07 12:48:42 It seems there is a race condition because the num
anton 2016/07/07 13:33:54 ok, since it's not good enough solution for the ca
+ filterEngine.getListedSubscriptions().get(0).removeFromList();
+
+ Thread.sleep(100);
}
}
« no previous file with comments | « no previous file | libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/FilterEngineTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld