Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix building with GCC11 #567

Merged
merged 1 commit into from Nov 13, 2021
Merged

tests: fix building with GCC11 #567

merged 1 commit into from Nov 13, 2021

Conversation

ArchangeGabriel
Copy link
Contributor

While building on Arch, we had:

/build/opendht/src/opendht-2.3.1/tests/threadpooltester.cpp: In member function ‘void test::ThreadPoolTester::testThreadPool()’:
/build/opendht/src/opendht-2.3.1/tests/threadpooltester.cpp:47:27: error: ‘sleep_for’ is not a member of ‘std::this_thread’
   47 |         std::this_thread::sleep_for(std::chrono::milliseconds(10));
      |                           ^~~~~~~~~
/build/opendht/src/opendht-2.3.1/tests/threadpooltester.cpp: In member function ‘void test::ThreadPoolTester::testExecutor()’:
/build/opendht/src/opendht-2.3.1/tests/threadpooltester.cpp:76:27: error: ‘sleep_for’ is not a member of ‘std::this_thread’
   76 |         std::this_thread::sleep_for(std::chrono::milliseconds(10));
      |                           ^~~~~~~~~

Fixes `error: ‘sleep_for’ is not a member of ‘std::this_thread’`
@ArchangeGabriel
Copy link
Contributor Author

@aberaud Anything wrong with this PR?

@aberaud aberaud merged commit a89e4d6 into savoirfairelinux:master Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants