public void TestTimeoutPriority() { DescribeAccessPointsRequest request = new DescribeAccessPointsRequest(); request.SetConnectTimeoutInMilliSeconds(8000); client.SetConnectTimeoutInMilliSeconds(1); DescribeAccessPointsResponse response = client.GetAcsResponse(request); client.SetConnectTimeoutInMilliSeconds(5000); Assert.True(0 <= response.AccessPointSet.Count); }
public void TestVPCConnectTimeoutWithException() { var request = new DescribeAccessPointsRequest(); request.SetConnectTimeoutInMilliSeconds(1); var exception = Assert.Throws <ClientException>(() => { var response = GetDefaultClient().GetAcsResponse(request); }); Assert.NotNull(exception.Message); }
public void TestTimeoutPriority() { var request = new DescribeAccessPointsRequest(); request.SetConnectTimeoutInMilliSeconds(8000); var client = FeatureCommon.GetDefaultClient(); client.SetConnectTimeoutInMilliSeconds(1); var response = client.GetAcsResponse(request); client.SetConnectTimeoutInMilliSeconds(5000); Assert.True(0 <= response.AccessPointSet.Count); }