ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptupit...@apache.org
Subject [2/2] ignite git commit: Fix protocol version in tests
Date Wed, 06 Sep 2017 14:45:10 GMT
Fix protocol version in tests


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/6aeed1f1
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/6aeed1f1
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/6aeed1f1

Branch: refs/heads/ignite-5896
Commit: 6aeed1f1e2840eeec9739d25b604b490f43e38d6
Parents: b70f058
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Wed Sep 6 17:44:56 2017 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Wed Sep 6 17:44:56 2017 +0300

----------------------------------------------------------------------
 .../dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs | 2 +-
 .../dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs        | 2 +-
 .../dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/6aeed1f1/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
index c6743b1..04da95d 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/ClientConnectionTest.cs
@@ -113,7 +113,7 @@ namespace Apache.Ignite.Core.Tests.Client
                     new ClientProtocolVersion(-1, -1, -1)));
 
                 Assert.AreEqual("Client handhsake failed: 'Unsupported version.'. " +
-                                "Client version: -1.-1.-1. Server version: 2.1.5", ex.Message);
+                                "Client version: -1.-1.-1. Server version: 1.0.0", ex.Message);
             }
         }
     }

http://git-wip-us.apache.org/repos/asf/ignite/blob/6aeed1f1/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs
index e3f163c..06abae8 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Client/RawSocketTest.cs
@@ -99,9 +99,9 @@ namespace Apache.Ignite.Core.Tests.Client
                 stream.WriteByte(1);
 
                 // Protocol version.
-                stream.WriteShort(2);
                 stream.WriteShort(1);
                 stream.WriteShort(0);
+                stream.WriteShort(0);
 
                 // Client type: platform.
                 stream.WriteByte(2);

http://git-wip-us.apache.org/repos/asf/ignite/blob/6aeed1f1/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs
index b9cfb04..786a7c4 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Client/ClientSocket.cs
@@ -35,7 +35,7 @@ namespace Apache.Ignite.Core.Impl.Client
     internal class ClientSocket : IDisposable
     {
         /** Current version. */
-        private static readonly ClientProtocolVersion CurrentProtocolVersion = new ClientProtocolVersion(2,
1, 5);
+        private static readonly ClientProtocolVersion CurrentProtocolVersion = new ClientProtocolVersion(1,
0, 0);
 
         /** Handshake opcode. */
         private const byte OpHandshake = 1;


Mime
View raw message