diff --git a/x-pack/plugin/data-frame/src/test/java/org/elasticsearch/xpack/dataframe/checkpoint/DataFrameTransformCheckpointServiceNodeTests.java b/x-pack/plugin/data-frame/src/test/java/org/elasticsearch/xpack/dataframe/checkpoint/DataFrameTransformCheckpointServiceNodeTests.java index 28825051630..ad45ab61772 100644 --- a/x-pack/plugin/data-frame/src/test/java/org/elasticsearch/xpack/dataframe/checkpoint/DataFrameTransformCheckpointServiceNodeTests.java +++ b/x-pack/plugin/data-frame/src/test/java/org/elasticsearch/xpack/dataframe/checkpoint/DataFrameTransformCheckpointServiceNodeTests.java @@ -142,6 +142,7 @@ public class DataFrameTransformCheckpointServiceNodeTests extends DataFrameSingl @AfterClass public static void tearDownClient() { mockClientForCheckpointing.close(); + mockClientForCheckpointing = null; } public void testCreateReadDeleteCheckpoint() throws InterruptedException {