Skip to content

Commit ba6f453

Browse files
committed
fix tests
1 parent e6e65ce commit ba6f453

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

internal/model/config.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,23 +83,33 @@ func (ncc *NginxConfigContext) Equal(otherNginxConfigContext *NginxConfigContext
8383
otherNginxConfigContext.StubStatus.Listen || ncc.StubStatus.Location !=
8484
otherNginxConfigContext.StubStatus.Location {
8585
slog.Info("stub status not equal")
86+
slog.Info("URL", "ncc", ncc.StubStatus.URL, "other",
87+
otherNginxConfigContext.StubStatus.URL)
88+
slog.Info("Listen", "ncc", ncc.StubStatus.Listen, "other",
89+
otherNginxConfigContext.StubStatus.Listen)
90+
slog.Info("URL", "ncc", ncc.StubStatus.Location, "other",
91+
otherNginxConfigContext.StubStatus.Location)
92+
8693
return false
8794
}
8895

8996
if ncc.PlusAPI.URL != otherNginxConfigContext.PlusAPI.URL || ncc.PlusAPI.Listen !=
9097
otherNginxConfigContext.PlusAPI.Listen || ncc.PlusAPI.Location !=
9198
otherNginxConfigContext.PlusAPI.Location {
9299
slog.Info("plus api not equal")
100+
93101
return false
94102
}
95103

96104
if ncc.InstanceID != otherNginxConfigContext.InstanceID {
97105
slog.Info("id not equal")
106+
98107
return false
99108
}
100109

101110
if !ncc.areFileEqual(otherNginxConfigContext.Files) {
102111
slog.Info("files not equal")
112+
103113
return false
104114
}
105115

0 commit comments

Comments
 (0)