From 7538fec814cea7326dabb3f4c690b3530f7bdafb Mon Sep 17 00:00:00 2001 From: ABingHuang Date: Wed, 13 Jul 2022 12:57:06 +0800 Subject: [PATCH] fix sonar --- .../test/java/com/starrocks/catalog/MaterializedViewTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/test/java/com/starrocks/catalog/MaterializedViewTest.java b/fe/fe-core/src/test/java/com/starrocks/catalog/MaterializedViewTest.java index 26783fe48fd64..4056be520ad01 100644 --- a/fe/fe-core/src/test/java/com/starrocks/catalog/MaterializedViewTest.java +++ b/fe/fe-core/src/test/java/com/starrocks/catalog/MaterializedViewTest.java @@ -475,7 +475,7 @@ public void testMvAfterDropBaseTable() throws Exception { String dropSql = "drop table tbl_drop;"; StmtExecutor stmtExecutor = new StmtExecutor(connectContext, dropSql); stmtExecutor.execute(); - Assert.assertTrue(mv != null); + Assert.assertNotNull(mv); Assert.assertFalse(mv.isActive()); } }