File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -175,14 +175,19 @@ var _ = Describe("Handler Suite", func() {
175
175
176
176
Context ("and the instance termination notice is not fulfilled" , func () {
177
177
BeforeEach (func () {
178
- httpHandler = newMockHTTPHandler (emptyEvents )
178
+ httpHandler = newMockHTTPHandler (func (rw http.ResponseWriter , req * http.Request ) {
179
+ atomic .AddInt32 (& counter , 1 )
180
+ emptyEvents (rw , req )
181
+ })
179
182
})
180
183
181
184
It ("should not mark the node for deletion" , func () {
182
185
Consistently (nodeMarkedForDeletion (testNode .Name )).Should (BeFalse ())
183
186
})
184
187
})
188
+ })
185
189
190
+ Context ("when the termination endpoint is invalid" , func () {
186
191
Context ("and the poll URL cannot be reached" , func () {
187
192
BeforeEach (func () {
188
193
h .pollURL = & url.URL {Opaque : "abc#1://localhost" }
You can’t perform that action at this time.
0 commit comments