From 68d57343d5bd4bb11505b5a323ea44ac1b2b8a3f Mon Sep 17 00:00:00 2001 From: Ashwinn11 Date: Mon, 13 May 2024 21:08:29 +0530 Subject: [PATCH] [#12901] added a check for searchService --- .../teammates/it/storage/sqlsearch/AccountRequestSearchIT.java | 3 +++ 1 file changed, 3 insertions(+) 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 =