Skip to content

Commit

Permalink
Don't init Solr cores in parallel
Browse files Browse the repository at this point in the history
apparently sometimes it chokes?
  • Loading branch information
mausch committed Jul 16, 2024
1 parent d477aa8 commit 4955ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SolrNet.Tests.Common/TestContainers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static async Task<IContainer> BuildSolrContainer(string nameSuffix)
"entity1",
"entity2",
};
await Parallel.ForEachAsync(cores, async (core, cancel) =>
foreach (var core in cores)
{
await container.ExecWithCheck($"Error creating Solr collection for core '{core}'",
"/opt/solr/bin/solr", "create_collection",
Expand All @@ -104,7 +104,7 @@ await container.ExecWithCheck($"Error populating Solr core '{core}'",
"-c", core,
"example/exampledocs/"
);
});
}
return container;
}

Expand Down

0 comments on commit 4955ddb

Please sign in to comment.