mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
fix(sanitizers): disable false positive FtProfileInvalidQuery (#4090)
* disable FtProfileInvalidQuery Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
5838ed99b4
commit
d3ef0a3630
1 changed files with 2 additions and 0 deletions
|
@ -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"});
|
||||
|
@ -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"});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue