ptupitsyn commented on code in PR #11107:
URL: https://github.com/apache/ignite/pull/11107#discussion_r1434068883
##########
modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/Services/ServiceAwarenessTests.cs:
##########
@@ -337,14 +337,19 @@ private static void CallService(IJavaService service,
bool failureExpected)
}
/// <summary>
- /// Extracts received effective service topology from the client' log.
+ /// Extracts received effective service topology from the client' log.
Expects strictly one record. Ensures
+ /// that service topology is updated once.
/// </summary>
private static IList<string> ExtractServiceTopology(ListLogger log,
string stringToSearch)
{
- var logEntry = log.Entries
+ var allLogEntries = log.Entries
.Where(e => e.Message.Contains(stringToSearch))
- .Select(e => e.Message)
- .Single();
+ .Select(e => e.Message);
+
+ // Check service topology is updated strictly once.
+ Assert.AreEqual(1, allLogEntries.Count());
Review Comment:
`Single()` ensures 1 and only 1 element.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]