Speed up slow tests (#1077)

Same checks, half the time.
master
gaschler 2018-04-17 15:41:09 +02:00 committed by Wally B. Feed
parent ed0a8846f1
commit 4278dbb7ea
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class LocalTrajectoryBuilderTest : public ::testing::Test {
min_range = 0.5,
max_range = 50.,
num_accumulated_range_data = 1,
voxel_filter_size = 0.05,
voxel_filter_size = 0.2,
high_resolution_adaptive_voxel_filter = {
max_length = 0.7,
@ -237,7 +237,7 @@ class LocalTrajectoryBuilderTest : public ::testing::Test {
TrajectoryNode{current_time, transform::Rigid3d::Identity()});
}
// Corkscrew translation and constant velocity rotation.
for (double t = 0.; t <= 0.6; t += 0.006) {
for (double t = 0.; t <= 0.6; t += 0.05) {
current_time += common::FromSeconds(0.3);
trajectory.push_back(TrajectoryNode{
current_time,

View File

@ -37,7 +37,7 @@ class FastCorrelativeScanMatcher3DTest : public ::testing::Test {
protected:
FastCorrelativeScanMatcher3DTest()
: range_data_inserter_(CreateRangeDataInserterTestOptions3D()),
options_(CreateFastCorrelativeScanMatcher3DTestOptions3D(5)) {}
options_(CreateFastCorrelativeScanMatcher3DTestOptions3D(6)) {}
void SetUp() override {
point_cloud_ = {