Skip to content

Commit

Permalink
fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aphralG committed Nov 29, 2024
1 parent 6b8965b commit a28f55b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ type APIDetails struct {
}

func (ncc *NginxConfigContext) Equal(otherNginxConfigContext *NginxConfigContext) bool {
if ncc.StubStatus != otherNginxConfigContext.StubStatus {
if ncc.StubStatus.URL != otherNginxConfigContext.StubStatus.URL || ncc.StubStatus.Location !=
otherNginxConfigContext.StubStatus.Location {
return false
}

if ncc.PlusAPI != otherNginxConfigContext.PlusAPI {
if ncc.PlusAPI.URL != otherNginxConfigContext.PlusAPI.URL || ncc.PlusAPI.Location !=
otherNginxConfigContext.PlusAPI.Location {
return false
}

Expand Down

0 comments on commit a28f55b

Please sign in to comment.