forked from OSchip/llvm-project
[clangd] Fix flaky throttler test
The production code doesn't depend on the relative destruction order of the throttle request and the main request, but the test does.
This commit is contained in:
parent
61d417ceff
commit
eb64dbd6e0
|
@ -498,6 +498,8 @@ public:
|
|||
// Build the preamble and let the waiters know about it.
|
||||
build(std::move(*CurrentReq));
|
||||
}
|
||||
// Releasing the throttle before destroying the request assists testing.
|
||||
Throttle.reset();
|
||||
bool IsEmpty = false;
|
||||
{
|
||||
std::lock_guard<std::mutex> Lock(Mutex);
|
||||
|
|
Loading…
Reference in New Issue