Skip to content

Commit 4fcca9a

Browse files
committed
ut-fix
1 parent 0ec2832 commit 4fcca9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

iotdb-core/datanode/src/test/java/org/apache/iotdb/db/pipe/event/PipeTsFileInsertionEventTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public void testAuthCheck() throws Exception {
128128
true,
129129
false,
130130
false,
131-
Collections.singleton("table"),
131+
null,
132132
null,
133133
0,
134134
null,
@@ -140,7 +140,9 @@ public void testAuthCheck() throws Exception {
140140
false,
141141
Long.MIN_VALUE,
142142
Long.MAX_VALUE);
143-
Assert.assertThrows(AccessDeniedException.class, treeEvent::throwIfNoPrivilege);
143+
// Shall not throw any exceptions for historical files
144+
treeEvent.throwIfNoPrivilege();
145+
Assert.assertTrue(treeEvent.shouldParse4Privilege());
144146

145147
treeEvent.setTreeSchemaMap(Collections.singletonMap(deviceID, new String[] {"s0", "s1"}));
146148
Assert.assertThrows(AccessDeniedException.class, treeEvent::throwIfNoPrivilege);

0 commit comments

Comments
 (0)