Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/BaseJsTest.h

Issue 29496589: Noissue - workaround to reduce the probability of the race condition in tests (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 24, 2017, 1:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/BaseJsTest.h
diff --git a/test/BaseJsTest.h b/test/BaseJsTest.h
index c229ad3185d6c17b10c1a765a97718d741b61f78..f10fccafd78d58c8a5c4a7d38da2a8d0f15b3b15 100644
--- a/test/BaseJsTest.h
+++ b/test/BaseJsTest.h
@@ -174,6 +174,9 @@ public:
class LazyFileSystem : public AdblockPlus::IFileSystem, public AdblockPlus::FileSystem
{
public:
+ ~LazyFileSystem() {
+ std::this_thread::sleep_for(std::chrono::milliseconds(200));
+ }
IOBuffer Read(const std::string& path) const
{
std::string dummyData("");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld