Skip to content

Commit

Permalink
Fix test db pools
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Oct 25, 2023
1 parent 6d14a0d commit d9619ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/DeltaKustoAdxIntegrationTest/AdxDbTestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ public async Task CleanDbAsync(string dbName)

public void ReleaseDbs(IEnumerable<string> dbNames)
{
_availableDbNames.AddRange(dbNames);
lock (_queueLock)
{
_availableDbNames.AddRange(dbNames);
}
// Pop event for waiting threads
_newDbEvent.SetResult();
}

void IDisposable.Dispose()
Expand Down

0 comments on commit d9619ab

Please sign in to comment.