From 644e24514f5b5c20adc921a72e195b09709b153e Mon Sep 17 00:00:00 2001 From: Liu Rui Date: Tue, 22 Oct 2024 11:10:12 +0800 Subject: [PATCH] =?UTF-8?q?test-TestRegionController-=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=8D=B3=E6=97=B6=E5=91=BD=E4=B8=AD=E7=BC=93=E5=AD=98=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../net/ximatai/muyun/test/plaform/TestRegionController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/muyun-boot/src/test/java/net/ximatai/muyun/test/plaform/TestRegionController.java b/muyun-boot/src/test/java/net/ximatai/muyun/test/plaform/TestRegionController.java index dd436da..670184b 100644 --- a/muyun-boot/src/test/java/net/ximatai/muyun/test/plaform/TestRegionController.java +++ b/muyun-boot/src/test/java/net/ximatai/muyun/test/plaform/TestRegionController.java @@ -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" @@ -88,6 +88,8 @@ void testIdMapName() { "v_name", "test2" )); + Thread.sleep(500); + assertEquals("test2", regionController.getNameById(id2)); } }