Skip to content

Commit

Permalink
unit test for stamped tree too strict
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Wurm committed Aug 19, 2011
1 parent 50f43b8 commit f926940
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions octomap/src/testing/unit_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <string>
#ifdef _MSC_VER
#include <Windows.h> // to define Sleep()
#ifdef _MSC_VER
#include <Windows.h> // to define Sleep()
#endif


Expand Down Expand Up @@ -193,8 +193,7 @@ int main(int argc, char** argv) {
unsigned int tree_time = stamped_tree.getLastUpdateTime();
unsigned int node_time = result->getTimestamp();
EXPECT_TRUE (tree_time > 0);
EXPECT_EQ (node_time, tree_time);
#ifdef _MSC_VER
#ifdef _MSC_VER
Sleep(1000);
#else
sleep(1);
Expand Down

0 comments on commit f926940

Please sign in to comment.