Skip to content

Commit

Permalink
refactor if ocis running
Browse files Browse the repository at this point in the history
  • Loading branch information
amrita-shrestha committed Jan 7, 2025
1 parent 29aebd2 commit 78ebcae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/acceptance/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public static function logStep(BeforeStepScope $scope): void {
* NOTE: This method is called after each scenario having the @env-config tag
* This ensures that the server is running for clean-up purposes
*
* @AfterScenario @backup-consistency
* @AfterScenario @env-config
*
* @return void
*/
Expand Down
8 changes: 4 additions & 4 deletions tests/ociswrapper/ocis/ocis.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ func Restart(envMap []string) (bool, string) {
}

func IsOcisRunning() bool {
if cmd != nil {
return cmd.Process.Pid > 0
}
return false
if runningCommands["ocis"] > 0 {
return true
}
return false
}

func waitAllServices(startTime time.Time, timeout time.Duration) {
Expand Down

0 comments on commit 78ebcae

Please sign in to comment.