Skip to content

Commit

Permalink
test: Remove useless restoring of original state
Browse files Browse the repository at this point in the history
Each test runs in its own test fixture, so restoring the original state
at the end of a test is not necessary.
  • Loading branch information
mintar committed Mar 4, 2021
1 parent 16b71c7 commit 48ff427
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions image_geometry/test/utest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ TEST_F(PinholeTest, rectifyIfCalibrated)
model_.rectifyImage(distorted_image, rectified_image);
error = cv::norm(distorted_image, rectified_image, cv::NORM_L1);
EXPECT_EQ(error, 0);

// restore original distortion
model_.fromCameraInfo(cam_info_);
}

TEST_F(PinholeTest, rectifiedRoiSize) {
Expand Down

0 comments on commit 48ff427

Please sign in to comment.