Skip to content

Commit 22f275d

Browse files
committed
don't use static tempdir
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
1 parent 1035835 commit 22f275d

File tree

14 files changed

+14
-8
lines changed

14 files changed

+14
-8
lines changed

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/graphql/AbstractEthGraphQLHttpServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
import org.mockito.Mockito;
5757

5858
public abstract class AbstractEthGraphQLHttpServiceTest {
59-
@TempDir private static Path tempDir;
59+
@TempDir private Path tempDir;
6060

6161
private static BlockchainSetupUtil blockchainSetupUtil;
6262

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpServiceCorsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import org.mockito.Mockito;
4242

4343
public class GraphQLHttpServiceCorsTest {
44-
@TempDir private static Path folder;
44+
@TempDir private Path folder;
4545

4646
private final Vertx vertx = Vertx.vertx();
4747
private final OkHttpClient client = new OkHttpClient();

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpServiceHostWhitelistTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
public class GraphQLHttpServiceHostWhitelistTest {
4848

49-
@TempDir private static Path folder;
49+
@TempDir private Path folder;
5050

5151
protected static Vertx vertx;
5252

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/graphql/GraphQLHttpServiceTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
public class GraphQLHttpServiceTest {
6161

62+
// this tempDir is deliberately static
6263
@TempDir private static Path folder;
6364

6465
private static final Vertx vertx = Vertx.vertx();

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpServiceCorsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import org.junit.jupiter.api.io.TempDir;
3636

3737
public class JsonRpcHttpServiceCorsTest {
38-
@TempDir private static Path folder;
38+
@TempDir private Path folder;
3939

4040
private final Vertx vertx = Vertx.vertx();
4141
private final OkHttpClient client = new OkHttpClient();

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpServiceLoginTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
@ExtendWith(MockitoExtension.class)
9191
public class JsonRpcHttpServiceLoginTest {
9292

93+
// this tempDir is deliberately static
9394
@TempDir private static Path folder;
9495

9596
private static final Vertx vertx = Vertx.vertx();

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpServiceRpcApisTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
@ExtendWith(MockitoExtension.class)
8989
public class JsonRpcHttpServiceRpcApisTest {
9090

91-
@TempDir private static Path folder;
91+
@TempDir private Path folder;
9292

9393
private final Vertx vertx = Vertx.vertx();
9494
private final OkHttpClient client = new OkHttpClient();

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpServiceTestBase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767

6868
public class JsonRpcHttpServiceTestBase {
6969

70+
// this tempDir is deliberately static
7071
@TempDir private static Path folder;
7172
protected final JsonRpcTestHelper testHelper = new JsonRpcTestHelper();
7273

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/JsonRpcHttpServiceTlsClientAuthTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
import org.junit.jupiter.api.io.TempDir;
8080

8181
public class JsonRpcHttpServiceTlsClientAuthTest {
82+
// this tempDir is deliberately static
8283
@TempDir private static Path folder;
8384

8485
protected static final Vertx vertx = Vertx.vertx();

ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/processor/TransactionTracerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
@MockitoSettings(strictness = Strictness.LENIENT)
6767
public class TransactionTracerTest {
6868

69-
@TempDir private static Path traceDir;
69+
@TempDir private Path traceDir;
7070

7171
@Mock private ProtocolSchedule protocolSchedule;
7272
@Mock private Blockchain blockchain;

0 commit comments

Comments
 (0)