| 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); |
| } |
| } |