Skip to content

Commit 30adf7e

Browse files
committed
Adjust test
1 parent ffcc870 commit 30adf7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solr/packaging/powershell-tests/Version.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ Describe "Solr Version Command" {
4141
Context "When using --version flag" {
4242
It "--version returns Solr version" {
4343
$output = & $SolrCmd --version 2>&1
44-
$output | Should -Contain "Solr version is:"
44+
$output | Out-String | Should -Match "Solr version is:"
4545
}
4646
}
4747

4848
Context "When using version as direct command" {
4949
It "version as direct tool call still runs" {
5050
$output = & $SolrCmd version 2>&1
51-
$output | Should -Contain "Solr version is:"
51+
$output | Out-String | Should -Match "Solr version is:"
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)