Skip to content

Commit 032d162

Browse files
committed
Use EXPECT_NEAR vs EXPECT_EQ
1 parent 0c6d80b commit 032d162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_rtde_client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ TEST_F(RTDEClientTest, set_target_frequency)
211211
data_pkg->getData("timestamp", second_time_stamp);
212212

213213
// There should be 1 second between each timestamp
214-
EXPECT_EQ(second_time_stamp - first_time_stamp, 1);
214+
EXPECT_NEAR(second_time_stamp - first_time_stamp, 1, 1e-6);
215215

216216
client_->pause();
217217
}

0 commit comments

Comments
 (0)