restructured contexts in mitm tests

This commit is contained in:
Tatiana Bradley
2019-08-01 14:35:15 +00:00
parent db645f3336
commit 179d445778

View File

@@ -72,6 +72,7 @@ var _ = Describe("MITM test", func() {
Expect(err).ToNot(HaveOccurred())
})
Context("unsuccessful attacks", func() {
AfterEach(func() {
Eventually(serverSess.Context().Done()).Should(BeClosed())
// Test shutdown is tricky due to the proxy. Just wait for a bit.
@@ -266,5 +267,10 @@ var _ = Describe("MITM test", func() {
})
})
})
Context("successful injection attacks", func() {
// TODO(tatianab): add successful injection attacks
})
})
}
})