Skip to content

Commit

Permalink
fixed migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
kofoworola committed Jan 16, 2025
1 parent 185ac30 commit c0cdaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apidef/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ func (a *APIDefinition) SetDisabledFlags() {
a.Proxy.ServiceDiscovery.CacheDisabled = true
a.UptimeTests.Config.ServiceDiscovery.CacheDisabled = true
a.DisableExpireAnalytics = true
a.SessionLifetimeDisabled = true

for i := 0; i < len(a.CustomMiddleware.Pre); i++ {
a.CustomMiddleware.Pre[i].Disabled = true
Expand Down
1 change: 1 addition & 0 deletions apidef/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ func TestSetDisabledFlags(t *testing.T) {
DomainDisabled: true,
CustomMiddlewareBundleDisabled: true,
ConfigDataDisabled: true,
SessionLifetimeDisabled: true,
Proxy: ProxyConfig{
ServiceDiscovery: ServiceDiscoveryConfiguration{
CacheDisabled: true,
Expand Down

0 comments on commit c0cdaa0

Please sign in to comment.