@@ -35,7 +35,7 @@ public class ElasticsearchNode : IDisposable
3535 } ;
3636 private string [ ] DefaultNodeSettings { get ; }
3737
38- private readonly bool _doNotSpawnIfAlreadyRunning ;
38+ private readonly bool _testAgainstAlreadyRunningElasticsearch ;
3939 private readonly bool _shieldEnabled ;
4040 private readonly bool _watcherEnabled ;
4141 private ObservableProcess _process ;
@@ -107,12 +107,12 @@ public bool WaitOne(TimeSpan timeout, bool exitContext)
107107 public ElasticsearchNode (
108108 string elasticsearchVersion ,
109109 bool runningIntegrations ,
110- bool doNotSpawnIfAlreadyRunning ,
110+ bool testAgainstAlreadyRunningElasticsearch ,
111111 string name ,
112112 bool shieldEnabled ,
113113 bool watcherEnabled )
114114 {
115- this . _doNotSpawnIfAlreadyRunning = doNotSpawnIfAlreadyRunning ;
115+ this . _testAgainstAlreadyRunningElasticsearch = testAgainstAlreadyRunningElasticsearch ;
116116 this . _shieldEnabled = shieldEnabled ;
117117 this . _watcherEnabled = watcherEnabled ;
118118
@@ -238,7 +238,7 @@ private IObservable<ElasticsearchMessage> UseAlreadyRunningInstance(Signal handl
238238 private IObservable < ElasticsearchMessage > UseAlreadyRunningInstance ( ManualResetEvent handle )
239239#endif
240240 {
241- if ( ! _doNotSpawnIfAlreadyRunning ) return null ;
241+ if ( ! _testAgainstAlreadyRunningElasticsearch ) return null ;
242242
243243 var client = TestClient . Default ;
244244 var alreadyUp = client . RootNodeInfo ( ) ;
@@ -576,7 +576,7 @@ public void Stop(bool disposing = false)
576576
577577 Console . WriteLine ( $ "Node had started on port: { this . Port } cleaning up log/data/repository files...") ;
578578
579- if ( this . _doNotSpawnIfAlreadyRunning ) return ;
579+ if ( this . _testAgainstAlreadyRunningElasticsearch ) return ;
580580 var dataFolder = Path . Combine ( this . RoamingClusterFolder , "data" , this . ClusterName ) ;
581581 if ( Directory . Exists ( dataFolder ) )
582582 {
0 commit comments