Skip to content

Commit

Permalink
fix(sanitizers): disable false positive FtProfileInvalidQuery (#4090)
Browse files Browse the repository at this point in the history
* disable FtProfileInvalidQuery 

Signed-off-by: kostas <kostas@dragonflydb.io>
  • Loading branch information
kostasrim authored Nov 8, 2024
1 parent 5838ed9 commit d3ef0a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/search/search_family_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@ TEST_F(SearchFamilyTest, FtProfile) {
ASSERT_ARRAY_OF_TWO_ARRAYS(resp);
}

#ifndef SANITIZERS
TEST_F(SearchFamilyTest, FtProfileInvalidQuery) {
Run({"json.set", "j1", ".", R"({"id":"1"})"});
Run({"ft.create", "i1", "on", "json", "schema", "$.id", "as", "id", "tag"});
Expand All @@ -847,6 +848,7 @@ TEST_F(SearchFamilyTest, FtProfileInvalidQuery) {
resp = Run({"ft.profile", "i1", "search", "query", "@{invalid13289}"});
EXPECT_THAT(resp, ErrArg("query syntax error"));
}
#endif

TEST_F(SearchFamilyTest, FtProfileErrorReply) {
Run({"ft.create", "i1", "schema", "name", "text"});
Expand Down

0 comments on commit d3ef0a3

Please sign in to comment.