summaryrefslogtreecommitdiff
path: root/test/netstd
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2019-11-23 01:55:58 +0100
committerJens Geyer <jensg@apache.org>2019-11-23 22:40:53 +0100
commit5080645cb0ffe52de9d82685b2ab2d6b03aa6f3e (patch)
tree1d7e06952e426ae622e417c72ddd6ac948f7e328 /test/netstd
parentb541c6f2b126219867963c8b577b4c08d72e866d (diff)
downloadthrift-5080645cb0ffe52de9d82685b2ab2d6b03aa6f3e.tar.gz
THRIFT-5027 Implement remaining read bytes checks
Client: netstd Patch: Jens Geyer This closes #1946
Diffstat (limited to 'test/netstd')
-rw-r--r--test/netstd/Client/Performance/PerformanceTests.cs3
-rw-r--r--test/netstd/Client/TestClient.cs6
2 files changed, 4 insertions, 5 deletions
diff --git a/test/netstd/Client/Performance/PerformanceTests.cs b/test/netstd/Client/Performance/PerformanceTests.cs
index 05c64b240..2c79aa6ef 100644
--- a/test/netstd/Client/Performance/PerformanceTests.cs
+++ b/test/netstd/Client/Performance/PerformanceTests.cs
@@ -68,10 +68,9 @@ namespace Client.Tests
foreach (var layered in Enum.GetValues(typeof(LayeredChoice)))
{
Layered = (LayeredChoice)layered;
-
await RunTestAsync(async (bool b) => { return await GenericProtocolFactory<TBinaryProtocol>(b); });
await RunTestAsync(async (bool b) => { return await GenericProtocolFactory<TCompactProtocol>(b); });
- //await RunTestAsync(async (bool b) => { return await GenericProtocolFactory<TJsonProtocol>(b); });
+ await RunTestAsync(async (bool b) => { return await GenericProtocolFactory<TJsonProtocol>(b); });
}
}
diff --git a/test/netstd/Client/TestClient.cs b/test/netstd/Client/TestClient.cs
index 0c147dcc7..3eab86545 100644
--- a/test/netstd/Client/TestClient.cs
+++ b/test/netstd/Client/TestClient.cs
@@ -446,7 +446,7 @@ namespace ThriftTest
Normal, // Fairly small array of usual size (256 bytes)
Large, // Large writes/reads may cause range check errors
PipeWriteLimit, // Windows Limit: Pipe write operations across a network are limited to 65,535 bytes per write.
- TwentyMB // that's quite a bit of data
+ FifteenMB // that's quite a bit of data
};
public static byte[] PrepareTestData(bool randomDist, BinaryTestSize testcase)
@@ -466,8 +466,8 @@ namespace ThriftTest
case BinaryTestSize.PipeWriteLimit:
amount = 0xFFFF + 128;
break;
- case BinaryTestSize.TwentyMB:
- amount = 20 * 1024 * 1024;
+ case BinaryTestSize.FifteenMB:
+ amount = 15 * 1024 * 1024;
break;
default:
throw new ArgumentException(nameof(testcase));