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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 15 matching lines...) Expand all
26 26
27 @Override 27 @Override
28 protected void setUp() throws Exception 28 protected void setUp() throws Exception
29 { 29 {
30 super.setUp(); 30 super.setUp();
31 31
32 jsEngine.setWebRequest(new LazyWebRequest()); 32 jsEngine.setWebRequest(new LazyWebRequest());
33 jsEngine.setDefaultLogSystem(); 33 jsEngine.setDefaultLogSystem();
34 34
35 filterEngine = new FilterEngine(jsEngine); 35 filterEngine = new FilterEngine(jsEngine);
36
37 // JsEngine has built-in default subscriptions
38 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
39 filterEngine.getListedSubscriptions().get(0).removeFromList();
40
41 Thread.sleep(100);
36 } 42 }
37 } 43 }
OLDNEW
« 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