Skip to content

Commit

Permalink
Update command_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-hashicorp committed Dec 10, 2024
1 parent 438db7b commit f57f375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subcommand/health-sync/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func TestRun(t *testing.T) {
log.Printf("BEFORE: Updating dataplane container with Status markDataplaneContainerUnhealthy :%t and expCheck.Status %s\n", markDataplaneContainerUnhealthy, expCheck.Status)
if c.missingDataplaneContainer || markDataplaneContainerUnhealthy {
expCheck.Status = api.HealthCritical
} else if len(c.healthSyncContainers) == 0 {
} else if len(c.healthSyncContainers) == 0 || !markDataplaneContainerUnhealthy {
expCheck.Status = api.HealthPassing
}
log.Printf("AFTER: Updating dataplane container with Status markDataplaneContainerUnhealthy :%t and expCheck.Status %s\n", markDataplaneContainerUnhealthy, expCheck.Status)
Expand Down

0 comments on commit f57f375

Please sign in to comment.