1
0
Fork 0

fix tests that didn't properly use env variable to look for test (#9399)

resource files
This commit is contained in:
Jan 2019-07-04 11:30:48 +02:00 committed by KVS85
parent b3ffaff86c
commit 7ffb0684cd
2 changed files with 8 additions and 4 deletions

View File

@ -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());

View File

@ -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 =