Skip to content

Commit 46e82d2

Browse files
committed
restore virtual clustering behaviour of returning after we've seen a response (BadResponse)
1 parent a77afeb commit 46e82d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Tests/Framework/VirtualClustering/VirtualClusterConnection.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Linq;
5+
using System.Net;
56
using System.Threading;
67
using System.Threading.Tasks;
78
using Elasticsearch.Net;
89
using FluentAssertions;
910
using Tests.Framework.MockResponses;
10-
using System.Net;
1111

1212
namespace Tests.Framework
1313
{
@@ -96,6 +96,9 @@ private ElasticsearchResponse<TReturn> HandleRules<TReturn, TRule>(
9696
Func<TRule, byte[]> successResponse
9797
) where TReturn : class where TRule : IRule
9898
{
99+
//TODO Make this pluggable?
100+
requestData.MadeItToResponse = true;
101+
99102
var state = this.Calls[requestData.Uri.Port];
100103
foreach (var rule in rules.Where(s => s.OnPort.HasValue))
101104
{

0 commit comments

Comments
 (0)