Skip to content

Commit 8d8c7ec

Browse files
committed
Fix failing integration test
Take direct dependency on readonly test cluster
1 parent 474f72d commit 8d8c7ec

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Tests/Reproduce/GithubIssue1863.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ namespace Tests.Reproduce
1616
[SkipVersion("<2.1.0", "")]
1717
public class GithubIssue1863
1818
{
19+
private readonly ReadOnlyCluster _cluster;
20+
21+
public GithubIssue1863(ReadOnlyCluster cluster)
22+
{
23+
_cluster = cluster;
24+
}
25+
1926
[I]
2027
public void ConcreteTypeConverterThrowsExceptionOnNullScore()
2128
{
22-
var client = TestClient.GetClient();
29+
var client = _cluster.Client(s => s);
2330
var response = client.Search<Project>(s => s
2431
.ConcreteTypeSelector((d,h) => typeof(Project))
2532
.Sort(srt => srt.Ascending(p => p.StartedOn))

0 commit comments

Comments
 (0)