Skip to content

Commit 8128cad

Browse files
committed
fix test that i just pushed that should use inmemory connection
1 parent 5a1e12d commit 8128cad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/Tests/Nest.Tests.Unit/Reproduce/Reproduce1440Tests.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Reflection;
5+
using Elasticsearch.Net.Connection;
56
using FluentAssertions;
67
using Nest.Tests.MockData.Domain;
78
using NUnit.Framework;
@@ -17,7 +18,7 @@ public class Reproduce1440Tests : BaseJsonTests
1718
[Test]
1819
public void CountShouldNotThrowWhenNoDefaultIndexSpecified()
1920
{
20-
var client = new ElasticClient();
21+
var client = new ElasticClient(connection: new InMemoryConnection(new ConnectionSettings()));
2122
var request = client.Count<ElasticsearchProject>();
2223
var path = new Uri(request.ConnectionStatus.RequestUrl).AbsolutePath;
2324
path.Should().Be("/_all/elasticsearchprojects/_count");

0 commit comments

Comments
 (0)