Skip to content

Commit

Permalink
test-TestRegionController-修正某些情况下无法即时命中缓存的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
aruis committed Oct 22, 2024
1 parent 1d2040a commit 644e245
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void testCreateWithID() {
}

@Test
void testIdMapName() {
void testIdMapName() throws InterruptedException {
String id1 = regionController.create(Map.of(
"id", UUID.randomUUID().toString(),
"v_name", "test1"
Expand All @@ -88,6 +88,8 @@ void testIdMapName() {
"v_name", "test2"
));

Thread.sleep(500);

assertEquals("test2", regionController.getNameById(id2));
}
}

0 comments on commit 644e245

Please sign in to comment.