diff --git a/src/it/java/teammates/it/storage/sqlsearch/AccountRequestSearchIT.java b/src/it/java/teammates/it/storage/sqlsearch/AccountRequestSearchIT.java index e2681ede766..8a31de0cd50 100644 --- a/src/it/java/teammates/it/storage/sqlsearch/AccountRequestSearchIT.java +++ b/src/it/java/teammates/it/storage/sqlsearch/AccountRequestSearchIT.java @@ -165,6 +165,9 @@ public void testSearchAccountRequest_noSearchService_shouldThrowException() { @Test public void testSqlInjectionSearchAccountRequestsInWholeSystem() throws Exception { + if(!TestProperties.isSearchServiceActive()){ + return; + } ______TS("SQL Injection test in searchAccountRequestsInWholeSystem"); AccountRequest accountRequest =