Skip to content

Commit 9673e1c

Browse files
committed
Take cluster as a dependency for integration test class
1 parent 6822b02 commit 9673e1c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Tests/Reproduce/GithubIssue1863.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using Elasticsearch.Net;
66
using Nest;
77
using FluentAssertions;
8+
using Tests.Document.Multiple.Reindex;
89
using Tests.Framework;
910
using Xunit;
1011
using Tests.Framework.Integration;
@@ -15,10 +16,17 @@ namespace Tests.Reproduce
1516
[Collection(TypeOfCluster.ReadOnly)]
1617
public class GithubIssue1863
1718
{
19+
private readonly ReadOnlyCluster _cluster;
20+
21+
public GithubIssue1863(ReadOnlyCluster cluster)
22+
{
23+
_cluster = cluster;
24+
}
25+
1826
[I]
1927
public void ConcreteTypeConverterThrowsExceptionOnNullScore()
2028
{
21-
var client = TestClient.GetClient();
29+
var client = _cluster.Client(s => s);
2230
var response = client.Search<Project>(s => s
2331
.ConcreteTypeSelector((d,h) => typeof(Project))
2432
.Sort(srt => srt.Ascending(p => p.StartedOn))

0 commit comments

Comments
 (0)