From 749856c455ef5a9af9edd1467e411344765ab0db Mon Sep 17 00:00:00 2001 From: marsal Date: Fri, 10 Jul 2026 16:29:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E4=B8=BA=20ChannelAccountEventCon?= =?UTF-8?q?trollerTest=20=E6=B7=BB=E5=8A=A0=20@Transactional=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E6=B5=8B=E8=AF=95=20SQL=20=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=BA=93=E6=B8=A0=E9=81=93=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../channel/controller/ChannelAccountEventControllerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/mci-server/src/test/java/com/sino/mci/channel/controller/ChannelAccountEventControllerTest.java b/backend/mci-server/src/test/java/com/sino/mci/channel/controller/ChannelAccountEventControllerTest.java index 9430216..42df175 100644 --- a/backend/mci-server/src/test/java/com/sino/mci/channel/controller/ChannelAccountEventControllerTest.java +++ b/backend/mci-server/src/test/java/com/sino/mci/channel/controller/ChannelAccountEventControllerTest.java @@ -12,6 +12,7 @@ import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http.MediaType; import org.springframework.test.context.jdbc.Sql; import org.springframework.test.web.servlet.MockMvc; +import org.springframework.transaction.annotation.Transactional; import java.util.Map; @@ -22,6 +23,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. @SpringBootTest @AutoConfigureMockMvc +@Transactional @Sql(scripts = "/sql/test-channel-account.sql", executionPhase = Sql.ExecutionPhase.BEFORE_TEST_METHOD) class ChannelAccountEventControllerTest {