[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.
public Supplier<TestData> values;
private Server<?> server;
+ private TearDownFixture[] fixtures;
private HttpClient.Factory clientFactory;
public void setFields() {
TestData data = values.get();
this.server = data.server;
+ this.fixtures = data.fixtures;
this.clientFactory = HttpClient.Factory.createDefault();
}
@After
public void stopServers() {
- Safely.safelyCall(values.get().fixtures);
+ Safely.safelyCall(this.fixtures);
}
