You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2017/07/13 14:53:07 UTC
ignite git commit: .NET: Unignore TestTransactionScopeMultiCache,
add async mode
Repository: ignite
Updated Branches:
refs/heads/ignite-4648 db5e7f59e -> fcf3617d7
.NET: Unignore TestTransactionScopeMultiCache, add async mode
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/fcf3617d
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/fcf3617d
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/fcf3617d
Branch: refs/heads/ignite-4648
Commit: fcf3617d73d12ead697263a2e56f4b27a283b639
Parents: db5e7f5
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Thu Jul 13 17:52:57 2017 +0300
Committer: Pavel Tupitsyn <pt...@apache.org>
Committed: Thu Jul 13 17:52:57 2017 +0300
----------------------------------------------------------------------
.../Cache/CacheAbstractTransactionalTest.cs | 27 +++++++++++++++-----
1 file changed, 21 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/fcf3617d/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTransactionalTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTransactionalTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTransactionalTest.cs
index 2e0c0fc..77ae8fe 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTransactionalTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/CacheAbstractTransactionalTest.cs
@@ -606,8 +606,7 @@ namespace Apache.Ignite.Core.Tests.Cache
/// with multiple participating caches.
/// </summary>
[Test]
- [Ignore("IGNITE-1561")]
- public void TestTransactionScopeMultiCache()
+ public void TestTransactionScopeMultiCache([Values(true, false)] bool async)
{
var cache1 = Cache();
@@ -622,8 +621,16 @@ namespace Apache.Ignite.Core.Tests.Cache
// Commit.
using (var ts = new TransactionScope())
{
- cache1[1] = 10;
- cache2[1] = 20;
+ if (async)
+ {
+ cache1.PutAsync(1, 10);
+ cache2.PutAsync(1, 20);
+ }
+ else
+ {
+ cache1.Put(1, 10);
+ cache2.Put(1, 20);
+ }
ts.Complete();
}
@@ -634,8 +641,16 @@ namespace Apache.Ignite.Core.Tests.Cache
// Rollback.
using (new TransactionScope())
{
- cache1[1] = 100;
- cache2[1] = 200;
+ if (async)
+ {
+ cache1.PutAsync(1, 100);
+ cache2.PutAsync(1, 200);
+ }
+ else
+ {
+ cache1.Put(1, 100);
+ cache2.Put(1, 200);
+ }
}
Assert.AreEqual(10, cache1[1]);