Skip to content

Commit 07d7868

Browse files
committed
Fix failing integration tests due to refactoring
1 parent 9b04a31 commit 07d7868

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Tests/Nest.Tests.Integration/Connection/Failover/SniffTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class SniffTests : IntegrationTests
1818
[Test]
1919
public void IndexExistShouldNotThrowOn404()
2020
{
21-
var host = ElasticsearchConfiguration.DefaultIndex;
21+
var host = ElasticsearchConfiguration.Host;
2222
if (Process.GetProcessesByName("fiddler").Any())
2323
host = "ipv4.fiddler";
2424
var connectionPool = new SniffingConnectionPool(new[] { new Uri("http://{0}:9200".F(host)) });

src/Tests/Nest.Tests.Integration/Reproduce/Reproduce723Tests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public void GetInvalidIndexShouldReturnNull()
3333
public void GetInvalidIndexShouldThrow_OnClientThatThrows()
3434
{
3535
const string indexName = "indexthatdoesnotexist";
36-
var e = Assert.Throws<ElasticsearchServerException>(() => this.Client.Source<ElasticsearchProject>(4, indexName));
36+
var e = Assert.Throws<ElasticsearchServerException>(() => this.ClientThatThrows.Source<ElasticsearchProject>(4, indexName));
3737
e.ExceptionType.Should().Be("IndexMissingException");
3838

3939
}

0 commit comments

Comments
 (0)