Skip to content
Snippets Groups Projects
Commit aaf2001e authored by akwizgran's avatar akwizgran
Browse files

Clear the set of known bridge lines after each attempt.

parent 925a0fa9
No related branches found
No related tags found
1 merge request!17Update bridges, refactor bridge configuration
Pipeline #16189 passed with warnings
......@@ -61,11 +61,11 @@ public class BridgeTest extends BaseTest {
public static Iterable<Params> data() {
// Share stats among all the test instances
Stats stats = new Stats();
// Test all the unique bridge lines
Set<String> bridges = new TreeSet<>();
CircumventionProvider provider = new CircumventionProviderImpl();
List<Params> states = new ArrayList<>();
for (int i = 0; i < ATTEMPTS_PER_BRIDGE; i++) {
// Test all the unique bridge lines
Set<String> bridges = new HashSet<>();
for (BridgeType type : BridgeType.values()) {
for (String bridge : provider.getBridges(type, "ZZ")) {
if (bridges.add(bridge)) states.add(new Params(bridge, type, stats));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment