Skip to content

Commit 5e8cb3a

Browse files
committed
[grid] Saving fixtures from the before method call
This seems to help with the "too many open files" error some of us get while running these tests locally.
1 parent 9746b86 commit 5e8cb3a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

java/server/test/org/openqa/selenium/grid/router/EndToEndTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,21 @@ public static Collection<Supplier<TestData>> buildGrids() {
102102
public Supplier<TestData> values;
103103

104104
private Server<?> server;
105+
private TearDownFixture[] fixtures;
105106

106107
private HttpClient.Factory clientFactory;
107108

108109
@Before
109110
public void setFields() {
110111
TestData data = values.get();
111112
this.server = data.server;
113+
this.fixtures = data.fixtures;
112114
this.clientFactory = HttpClient.Factory.createDefault();
113115
}
114116

115117
@After
116118
public void stopServers() {
117-
Safely.safelyCall(values.get().fixtures);
119+
Safely.safelyCall(this.fixtures);
118120
}
119121

120122

0 commit comments

Comments
 (0)