Skip to content

Commit e2c8ad4

Browse files
committed
updated test that succeeded because fiddler was running
1 parent ee178c7 commit e2c8ad4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Tests/Nest.Tests.Integration/ConnectionTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Net;
45
using Elasticsearch.Net;
56
using NUnit.Framework;
67

@@ -51,7 +52,7 @@ public void connect_to_unknown_hostname()
5152

5253
//this test will fail if fiddler is enabled since the proxy
5354
//will report a statuscode of 502 instead of -1
54-
Assert.DoesNotThrow(() =>
55+
Assert.Throws<WebException>(() =>
5556
{
5657
var settings = new ConnectionSettings(new Uri("http://youdontownthis.domain.do.you"), "index");
5758
var client = new ElasticClient(settings);

0 commit comments

Comments
 (0)