Skip to content

Commit b2b8d6c

Browse files
committed
Fix flaky repro test
1 parent 1e8f9b6 commit b2b8d6c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Tests/Reproduce/GithubIssue2173.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,24 @@
55
using System.Text;
66
using System.Threading.Tasks;
77
using Tests.Framework;
8+
using Tests.Framework.Integration;
89
using Tests.Framework.MockData;
10+
using Xunit;
911

1012
namespace Tests.Reproduce
1113
{
14+
[Collection(IntegrationContext.Indexing)]
1215
public class GithubIssue2173
1316
{
17+
private readonly IndexingCluster _cluster;
18+
public GithubIssue2173(IndexingCluster cluster)
19+
{
20+
_cluster = cluster;
21+
}
22+
1423
[I] public void UpdateByQueryWithInvalidScript()
1524
{
16-
var client = TestClient.GetClient();
25+
var client = _cluster.Client();
1726
var response = client.UpdateByQuery<Project>(typeof(Project), typeof(Project), u => u
1827
.Script("invalid groovy")
1928
);

0 commit comments

Comments
 (0)