Skip to content

Commit

Permalink
[fix] Fix unstable test TagAutoCreationTest#testModifyTagPeriod (#3073)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin authored Mar 22, 2024
1 parent 8e57754 commit 6378848
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ public void testModifyTagPeriod() {
Options options = new Options();
options.set(TAG_AUTOMATIC_CREATION, TagCreationMode.WATERMARK);
options.set(TAG_CREATION_PERIOD, TagCreationPeriod.HOURLY);
options.set(SINK_WATERMARK_TIME_ZONE, ZoneId.systemDefault().toString());
FileStoreTable table;
TableCommitImpl commit;
TagManager tagManager;
Expand All @@ -204,7 +203,7 @@ public void testModifyTagPeriod() {
tagManager = table.store().newTagManager();

// test first create
commit.commit(new ManifestCommittable(0, localZoneMills("2023-07-18T12:00:09")));
commit.commit(new ManifestCommittable(0, utcMills("2023-07-18T12:00:09")));
assertThat(tagManager.allTagNames()).containsOnly("2023-07-18 11");

options.set(TAG_CREATION_PERIOD, TagCreationPeriod.DAILY);
Expand Down

0 comments on commit 6378848

Please sign in to comment.