Skip to content

Commit e579d1c

Browse files
committed
Ensure userLimits is nil
This can cause test pollution with other suites that do not expect to set user limits, and consequently don't prepare the fake HTTP client to respond to user limit creation.
1 parent 2be88fe commit e579d1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controllers/user_controller_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ var _ = Describe("UserController", func() {
199199
})
200200

201201
Context("user limits", func() {
202+
AfterEach(func() {
203+
userLimits.Connections = nil
204+
userLimits.Connections = nil
205+
})
206+
202207
When("the user has limits defined", func() {
203208
BeforeEach(func() {
204209
userName = "test-user-limits"

0 commit comments

Comments
 (0)