@@ -123,8 +123,8 @@ void CDataFrameAnalysisRunnerTest::testComputeAndSaveExecutionStrategyDiskUsageF
123
123
}
124
124
125
125
void testEstimateMemoryUsage (int64_t numberRows,
126
- const std::string& expected_expected_memory_usage_with_one_partition ,
127
- const std::string& expected_expected_memory_usage_with_max_partitions ,
126
+ const std::string& expected_expected_memory_without_disk ,
127
+ const std::string& expected_expected_memory_with_disk ,
128
128
int expected_number_errors) {
129
129
130
130
std::ostringstream sstream;
@@ -159,14 +159,12 @@ void testEstimateMemoryUsage(int64_t numberRows,
159
159
const rapidjson::Value& result = arrayDoc[rapidjson::SizeType (0 )];
160
160
CPPUNIT_ASSERT (result.IsObject ());
161
161
162
- CPPUNIT_ASSERT (result.HasMember (" expected_memory_usage_with_one_partition" ));
163
- CPPUNIT_ASSERT_EQUAL (
164
- expected_expected_memory_usage_with_one_partition,
165
- std::string (result[" expected_memory_usage_with_one_partition" ].GetString ()));
166
- CPPUNIT_ASSERT (result.HasMember (" expected_memory_usage_with_max_partitions" ));
167
- CPPUNIT_ASSERT_EQUAL (
168
- expected_expected_memory_usage_with_max_partitions,
169
- std::string (result[" expected_memory_usage_with_max_partitions" ].GetString ()));
162
+ CPPUNIT_ASSERT (result.HasMember (" expected_memory_without_disk" ));
163
+ CPPUNIT_ASSERT_EQUAL (expected_expected_memory_without_disk,
164
+ std::string (result[" expected_memory_without_disk" ].GetString ()));
165
+ CPPUNIT_ASSERT (result.HasMember (" expected_memory_with_disk" ));
166
+ CPPUNIT_ASSERT_EQUAL (expected_expected_memory_with_disk,
167
+ std::string (result[" expected_memory_with_disk" ].GetString ()));
170
168
171
169
CPPUNIT_ASSERT_EQUAL (expected_number_errors, static_cast <int >(errors.size ()));
172
170
}
0 commit comments