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

Unified Diff: test/FilterEngine.cpp

Issue 29424663: Issue 5198 - workaround for race condition in tests (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: add comment Created April 28, 2017, 1:12 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/FilterEngine.cpp
diff --git a/test/FilterEngine.cpp b/test/FilterEngine.cpp
index 3244d42f4218e56fb63f2668f4503cb633e79cb9..dd80ab9f7844f6f0431a0f30cd352bcbc7748185 100644
--- a/test/FilterEngine.cpp
+++ b/test/FilterEngine.cpp
@@ -57,6 +57,11 @@ namespace
jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr(new LogSystem));
filterEngine = AdblockPlus::FilterEngine::Create(jsEngine);
}
+ void TearDown() override
+ {
+ // Workaround for issue 5198
+ std::this_thread::sleep_for(std::chrono::milliseconds(100));
+ }
};
typedef FilterEngineTestGeneric<LazyFileSystem, AdblockPlus::DefaultLogSystem> FilterEngineTest;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld