Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
jt2594838 committed Feb 11, 2025
1 parent cba0247 commit 37893d3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

public class ReadPointNonAlignedCrossCompactionTest extends AbstractCompactionTest {
private final String oldThreadName = Thread.currentThread().getName();
private boolean prevUseMultiType = false;

@Before
public void setUp()
Expand All @@ -75,6 +76,8 @@ public void setUp()
TSFileDescriptor.getInstance().getConfig().setMaxNumberOfPointsInPage(30);
TSFileDescriptor.getInstance().getConfig().setMaxDegreeOfIndexNode(3);
Thread.currentThread().setName("pool-1-IoTDB-Compaction-Worker-1");
prevUseMultiType = org.apache.tsfile.utils.TsFileGeneratorUtils.useMultiType;
org.apache.tsfile.utils.TsFileGeneratorUtils.useMultiType = true;
}

@After
Expand All @@ -87,6 +90,7 @@ public void tearDown() throws IOException, StorageEngineException {
for (TsFileResource tsFileResource : unseqResources) {
FileReaderManager.getInstance().closeFileAndRemoveReader(tsFileResource.getTsFilePath());
}
org.apache.tsfile.utils.TsFileGeneratorUtils.useMultiType = prevUseMultiType;
}

@Test
Expand Down

0 comments on commit 37893d3

Please sign in to comment.