Skip to content

Commit

Permalink
opt
Browse files Browse the repository at this point in the history
  • Loading branch information
funky-eyes committed Nov 27, 2023
1 parent 22e6e37 commit 347f2eb
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
import java.util.Collection;
import java.util.List;

import io.seata.server.session.SessionHolder;
import org.assertj.core.util.Files;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.boot.test.context.SpringBootTest;
Expand All @@ -38,12 +41,23 @@
import io.seata.server.storage.file.store.FileTransactionStoreManager;
import io.seata.server.store.StoreConfig;
import io.seata.server.store.TransactionStoreManager;
import org.springframework.context.ApplicationContext;

/**
* @author ggndnn
*/
@SpringBootTest
public class FileTransactionStoreManagerTest {

@BeforeAll
public static void init(ApplicationContext context){
SessionHolder.init(StoreConfig.SessionMode.FILE);
}
@AfterAll
public static void destroy(){
SessionHolder.destroy();
}

@Test
public void testBigDataWrite() throws Exception {
File seataFile = Files.newTemporaryFile();
Expand Down

0 comments on commit 347f2eb

Please sign in to comment.