This is an automated email from the ASF dual-hosted git repository.
dgkimura pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new 927af25 GEODE-3136: Fix flaky test ThinClientFunctionExecutionTestsN
927af25 is described below
commit 927af25ca91dc1a31b45977d6594372932d3bdc1
Author: David Kimura <[email protected]>
AuthorDate: Tue Nov 14 07:04:56 2017 -0800
GEODE-3136: Fix flaky test ThinClientFunctionExecutionTestsN
---
clicache/integration-test/ThinClientFunctionExecutionTestsN.cs | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/clicache/integration-test/ThinClientFunctionExecutionTestsN.cs
b/clicache/integration-test/ThinClientFunctionExecutionTestsN.cs
index 8a472bf..fb44686 100644
--- a/clicache/integration-test/ThinClientFunctionExecutionTestsN.cs
+++ b/clicache/integration-test/ThinClientFunctionExecutionTestsN.cs
@@ -19,6 +19,7 @@ using System;
using System.Collections.Generic;
using System.Collections;
using System.Threading;
+using System.Linq;
namespace Apache.Geode.Client.UnitTests
{
@@ -962,6 +963,7 @@ namespace Apache.Geode.Client.UnitTests
object args = 5000 * 1000;
+ Execution<object> exc = Client.FunctionService<object>.OnRegion<object,
object>(region);
for (int k = 0; k < 210; k++)
{
int j = 0;
@@ -973,16 +975,10 @@ namespace Apache.Geode.Client.UnitTests
}
Util.Log("filter count= {0}.", filter.Length);
- Execution<object> exc =
Client.FunctionService<object>.OnRegion<object, object>(region);
IResultCollector<object> rc =
exc.WithArgs<Object>(args).WithFilter<object>(filter).Execute(FuncTimeOutName,
TimeSpan.FromSeconds(5000));
ICollection<object> FunctionResult = rc.GetResult();
Util.Log("ExecuteFETimeOut onRegion FunctionResult.Count = {0} ",
FunctionResult.Count);
- foreach (Boolean item in FunctionResult)
- {
- Util.Log("on region:ExecuteFETimeOut:= {0}.", item);
- Assert.AreEqual(true, item, "ExecuteFETimeOut item not true");
- break;
- }
+ Assert.AreEqual(true, FunctionResult.Any(), "ExecuteFETimeOut item
never true");
Util.Log("ExecuteFETimeOut onRegion Done");
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].