Skip to content

Commit d96e845

Browse files
committed
Bug 34820900 - Build: Fix the Dot Net build to run using ubuntu-latest on GitHub, fix test failures (main -> net-v14.1.1.0 @99318)
[git-p4: depot-paths = "//dev/release.net/coherence-net-v14.1.1.0/": change = 99353]
1 parent e0751f0 commit d96e845

File tree

3 files changed

+7
-86
lines changed

3 files changed

+7
-86
lines changed

tests/Coherence.Tests/Coherence.Tests.2010.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
<Compile Include="IO\TestSerializers.cs" />
8787
<Compile Include="Net\Cache\CacheInvalidAddressTimeoutTest.cs" />
8888
<Compile Include="Net\Cache\CachesTimeoutTest.cs" />
89-
<Compile Include="Net\Cache\CacheTimeoutTest.cs" />
9089
<Compile Include="Net\Cache\CacheWithTimeoutTest.cs" />
9190
<Compile Include="Net\Cache\InvocableCacheTest.cs" />
9291
<Compile Include="Net\Cache\ViewTests.cs" />

tests/Coherence.Tests/Net/Cache/CacheTimeoutTest.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

tests/Coherence.Tests/Net/Cache/CachesTimeoutTest.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testShouldTimeoutWithGetCache()
6363
}
6464
catch (Exception e)
6565
{
66-
Assert.Fail("CacheFactory.getCache() failed to get the cache!");
66+
Assert.Fail("CacheFactory.getCache() failed to get the cache with exception: " + e);
6767
}
6868
});
6969

@@ -73,9 +73,13 @@ public void testShouldTimeoutWithGetCache()
7373

7474
try
7575
{
76-
using (ThreadTimeout t = ThreadTimeout.After(1000))
76+
using (ThreadTimeout t = ThreadTimeout.After(100))
7777
{
78-
CacheFactory.GetCache("dist-timeout-cache2");
78+
INamedCache cache = CacheFactory.GetCache("dist-timeout-cache2");
79+
for (int i = 0; i < 5000; i++)
80+
{
81+
cache.Add("key" + i, "value" + i);
82+
}
7983
Assert.Fail("CacheFactory.getCache() did not get ThreadInterruptedException!");
8084
}
8185
}

0 commit comments

Comments
 (0)