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()); } }