mirror of https://gitee.com/bigwinds/arangodb
fix tests that didn't properly use env variable to look for test (#9399)
resource files
This commit is contained in:
parent
b3ffaff86c
commit
7ffb0684cd
|
@ -32,8 +32,10 @@
|
|||
#include "velocypack/Iterator.h"
|
||||
|
||||
TEST(IResearchComparerTest, test_comparer_single_entry) {
|
||||
arangodb::tests::init(true);
|
||||
|
||||
irs::utf8_path resource;
|
||||
resource /= irs::string_ref(IResearch_test_resource_dir);
|
||||
resource /= irs::string_ref(arangodb::tests::testResourceDir);
|
||||
resource /= irs::string_ref("simple_sequential.json");
|
||||
|
||||
auto builder = arangodb::basics::VelocyPackHelper::velocyPackFromFile(resource.utf8());
|
||||
|
@ -75,8 +77,10 @@ TEST(IResearchComparerTest, test_comparer_single_entry) {
|
|||
}
|
||||
|
||||
TEST(IResearchComparerTest, test_comparer_multiple_entries) {
|
||||
arangodb::tests::init(true);
|
||||
|
||||
irs::utf8_path resource;
|
||||
resource /= irs::string_ref(IResearch_test_resource_dir);
|
||||
resource /= irs::string_ref(arangodb::tests::testResourceDir);
|
||||
resource /= irs::string_ref("simple_sequential.json");
|
||||
|
||||
auto builder = arangodb::basics::VelocyPackHelper::velocyPackFromFile(resource.utf8());
|
||||
|
|
|
@ -294,7 +294,7 @@ TEST_F(IResearchViewSortedTest, SingleField) {
|
|||
// insert into collections
|
||||
{
|
||||
irs::utf8_path resource;
|
||||
resource /= irs::string_ref(IResearch_test_resource_dir);
|
||||
resource /= irs::string_ref(arangodb::tests::testResourceDir);
|
||||
resource /= irs::string_ref("simple_sequential.json");
|
||||
|
||||
auto builder =
|
||||
|
@ -583,7 +583,7 @@ TEST_F(IResearchViewSortedTest, MultipleFields) {
|
|||
// insert into collections
|
||||
{
|
||||
irs::utf8_path resource;
|
||||
resource /= irs::string_ref(IResearch_test_resource_dir);
|
||||
resource /= irs::string_ref(arangodb::tests::testResourceDir);
|
||||
resource /= irs::string_ref("simple_sequential.json");
|
||||
|
||||
auto builder =
|
||||
|
|
Loading…
Reference in New Issue