operator: isolate integration tests (#1651)

This commit is contained in:
3u13r 2023-04-18 14:20:41 +02:00 committed by GitHub
parent e335421dd2
commit bf0d169cf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 123 additions and 31 deletions

View file

@ -34,3 +34,9 @@ func (u *fakeScalingGroupUpdater) SetScalingGroupImage(_ context.Context, scalin
u.scalingGroupImage[scalingGroupID] = imageURI
return nil
}
func (u *fakeScalingGroupUpdater) reset() {
u.Lock()
defer u.Unlock()
u.scalingGroupImage = make(map[string]string)
}