Skip to content

Commit

Permalink
Remove superfluous code from test
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jun 24, 2017
1 parent bb47a53 commit e51b330
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/regressions/lcos/wait_for_1751.cpp
Expand Up @@ -29,10 +29,9 @@ int hpx_main()
auto f = hpx::async([](){});

if (f.wait_for(std::chrono::seconds(1)) ==
hpx::lcos::future_status::timeout)
hpx::lcos::future_status::timeout)
{
auto now = std::chrono::high_resolution_clock::now();
overall_dif = now - overall_start_time;
std::chrono::duration<double> dif = now - start_time;

HPX_TEST_LTE(1.0, dif.count());
Expand All @@ -44,7 +43,6 @@ int hpx_main()
}

auto now = std::chrono::high_resolution_clock::now();
overall_dif = now - overall_start_time;
std::chrono::duration<double> dif = now - start_time;
HPX_TEST_LT(dif.count(), 1.0);
}
Expand Down

0 comments on commit e51b330

Please sign in to comment.