Skip to content

Commit

Permalink
IGNITE-23158 Remove redundant TableManagerRecoveryTest#workDir (#4347)
Browse files Browse the repository at this point in the history
`TableManagerRecoveryTest.workDir` hides a field from superclass, which prevents junit version update:

"java.lang.IllegalStateException: Test class must have a single field of type 'java.nio.file.Path' annotated with '@workdirectory', but 2 fields have been found"

Remove the field, it is not needed.
  • Loading branch information
ptupitsyn authored Sep 6, 2024
1 parent 264edea commit 52a565f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@
import org.apache.ignite.internal.table.distributed.raft.snapshot.outgoing.OutgoingSnapshotsManager;
import org.apache.ignite.internal.table.distributed.schema.AlwaysSyncedSchemaSyncService;
import org.apache.ignite.internal.testframework.IgniteAbstractTest;
import org.apache.ignite.internal.testframework.WorkDirectory;
import org.apache.ignite.internal.testframework.WorkDirectoryExtension;
import org.apache.ignite.internal.thread.IgniteThreadFactory;
import org.apache.ignite.internal.thread.StripedThreadPoolExecutor;
import org.apache.ignite.internal.tx.HybridTimestampTracker;
Expand All @@ -145,7 +143,7 @@
/**
* Table manager recovery scenarios.
*/
@ExtendWith({MockitoExtension.class, ConfigurationExtension.class, WorkDirectoryExtension.class})
@ExtendWith({MockitoExtension.class, ConfigurationExtension.class})
@MockitoSettings(strictness = Strictness.LENIENT)
public class TableManagerRecoveryTest extends IgniteAbstractTest {
private static final String NODE_NAME = "testNode1";
Expand All @@ -166,8 +164,6 @@ public class TableManagerRecoveryTest extends IgniteAbstractTest {
private TransactionConfiguration txConfig;
@InjectConfiguration
private StorageUpdateConfiguration storageUpdateConfiguration;
@WorkDirectory
private Path workDir;

// Table manager dependencies.
private SchemaManager sm;
Expand Down

0 comments on commit 52a565f

Please sign in to comment.