Skip to content

Commit

Permalink
use getters in *_equal testutils
Browse files Browse the repository at this point in the history
  • Loading branch information
singholt committed Aug 13, 2024
1 parent 1333a7d commit ec62a96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agent/api/testutils/container_equal.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func ContainersEqual(lhs, rhs *apicontainer.Container) bool {
if !ContainerOverridesEqual(lhs.Overrides, rhs.Overrides) {
return false
}
if lhs.DesiredStatusUnsafe != rhs.DesiredStatusUnsafe || lhs.KnownStatusUnsafe != rhs.KnownStatusUnsafe {
if lhs.GetDesiredStatus() != rhs.GetDesiredStatus() || lhs.GetKnownStatus() != rhs.GetKnownStatus() {
return false
}
if lhs.AppliedStatus != rhs.AppliedStatus {
Expand Down
2 changes: 1 addition & 1 deletion agent/api/testutils/task_equal.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TasksEqual(lhs, rhs *apitask.Task) bool {
}
}

if lhs.DesiredStatusUnsafe != rhs.DesiredStatusUnsafe {
if lhs.GetDesiredStatus() != rhs.GetDesiredStatus() {
return false
}
if lhs.GetKnownStatus() != rhs.GetKnownStatus() {
Expand Down

0 comments on commit ec62a96

Please sign in to comment.