Skip to content

Commit

Permalink
#645 Remove unnecessary code from SolrServiceValidatorTests
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryKolinchuk committed Nov 25, 2021
1 parent 31b06a3 commit a5a92ea
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public void ServiceIsStopped(IEnumerable<Task> tasks)
}

SolrServiceValidator val = Substitute.ForPartsOf<SolrServiceValidator>();
val.Data["Solr"] = "SolrUrl";
val.Data["Versions"] = "8.4.*";
SolrStateResolver solrStateResolver = Substitute.ForPartsOf<SolrStateResolver>();
solrStateResolver.GetServiceState(Arg.Any<string>()).ReturnsForAnyArgs(SolrState.CurrentState.Stopped);
val.SolrStateResolver.Returns(solrStateResolver);
Expand All @@ -39,8 +37,6 @@ public void ServiceIsRunning(IEnumerable<Task> tasks)
}

SolrServiceValidator val = Substitute.ForPartsOf<SolrServiceValidator>();
val.Data["Solr"] = "SolrUrl";
val.Data["Versions"] = "8.1.*";
SolrStateResolver solrStateResolver = Substitute.ForPartsOf<SolrStateResolver>();
solrStateResolver.GetServiceState(Arg.Any<string>()).ReturnsForAnyArgs(SolrState.CurrentState.Running);
val.SolrStateResolver.Returns(solrStateResolver);
Expand Down

0 comments on commit a5a92ea

Please sign in to comment.