We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee178c7 commit e2c8ad4Copy full SHA for e2c8ad4
src/Tests/Nest.Tests.Integration/ConnectionTests.cs
@@ -1,6 +1,7 @@
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
+using System.Net;
5
using Elasticsearch.Net;
6
using NUnit.Framework;
7
@@ -51,7 +52,7 @@ public void connect_to_unknown_hostname()
51
52
53
//this test will fail if fiddler is enabled since the proxy
54
//will report a statuscode of 502 instead of -1
- Assert.DoesNotThrow(() =>
55
+ Assert.Throws<WebException>(() =>
56
{
57
var settings = new ConnectionSettings(new Uri("http://youdontownthis.domain.do.you"), "index");
58
var client = new ElasticClient(settings);
0 commit comments