sashapolo commented on code in PR #1035:
URL: https://github.com/apache/ignite-3/pull/1035#discussion_r954907926
##########
modules/storage-api/src/test/java/org/apache/ignite/internal/storage/AbstractMvTableStorageTest.java:
##########
@@ -70,38 +85,65 @@ void setUp() {
}
@AfterEach
- void tearDown() {
- tableStorage.destroy();
+ void tearDownBase() {
+ tableStorage.stop();
}
/**
- * Tests creating a partition.
+ * Tests that {@link MvTableStorage#getMvPartition(int)} correctly returns
an existing partition.
*/
@Test
- public void testCreatePartition() {
- int partitionId = 0;
+ void testCreatePartition() {
+ MvPartitionStorage absentStorage = tableStorage.getMvPartition(0);
+
+ assertThat(absentStorage, is(nullValue()));
+
+ MvPartitionStorage partitionStorage =
tableStorage.getOrCreateMvPartition(0);
+
+ assertThat(partitionStorage, is(notNullValue()));
+
+ var testData = binaryRow(new TestKey(1, "1"), new TestValue(10, "10"));
Review Comment:
This code was copied from other class. Will fix
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]