Skip to content

Commit

Permalink
add modify record & fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
laywin@yeah.net committed Nov 14, 2023
1 parent 6f9cd40 commit 9268949
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion changes/en-us/2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ The version is updated as follows:
- [[#5951](https://github.com/seata/seata/pull/5951)] remove un support config in jdk17
- [[#5959](https://github.com/seata/seata/pull/5959)] modify code style and remove unused import
- [[#6002](https://github.com/seata/seata/pull/6002)] remove fst serialization

- [[#6030](https://github.com/seata/seata/pull/6030)] add a check for the existence of the undolog table

### security:
- [[#5642](https://github.com/seata/seata/pull/5642)] add Hessian Serializer WhiteDenyList
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ Seata 是一款开源的分布式事务解决方案,提供高性能和简单
- [[#5951](https://github.com/seata/seata/pull/5951)] 删除在 jdk17 中不支持的配置项
- [[#5959](https://github.com/seata/seata/pull/5959)] 修正代码风格问题及去除无用的类引用
- [[#6002](https://github.com/seata/seata/pull/6002)] 移除fst序列化模块
- [[#6030](https://github.com/seata/seata/pull/6030)] 添加undo_log表的存在性校验


### security:
Expand Down
11 changes: 0 additions & 11 deletions rm-datasource/src/test/java/io/seata/rm/RMHandlerATTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,6 @@ void hasUndoLogTableTest() {
verify(handler, times(testTimes)).deleteUndoLog(any(), any(), any());
}

@Test
void noUndoLogTableTest() {
RMHandlerAT handler = buildHandler(false);
UndoLogDeleteRequest request = buildRequest();
int testTimes = 5;
for (int i = 0; i < testTimes; i++) {
handler.handle(request);
}
verify(handler, never()).deleteUndoLog(any(), any(), any());
}

private RMHandlerAT buildHandler(boolean hasUndoLogTable) {
RMHandlerAT handler = spy(new RMHandlerAT());
DataSourceManager dataSourceManager = mock(DataSourceManager.class);
Expand Down

0 comments on commit 9268949

Please sign in to comment.