Remove unnecessary context and describe in test
@@ -32,6 +32,9 @@ var _ = Describe("Router", func() {
logEnvelopeBytes []byte
router *v1.Router
+
+ reqA, reqB, reqC, reqD, reqE, reqF, reqG *plumbing.SubscriptionRequest
+ cleanupA, cleanupB, cleanupC, cleanupD, cleanupE, cleanupF, cleanupG func()
)
BeforeEach(func() {
@@ -60,16 +63,7 @@ var _ = Describe("Router", func() {
Expect(err).ToNot(HaveOccurred())
router = v1.NewRouter()
- })
-
- Describe("data routing", func() {
- Context("when multiple setters are routed", func() {
- var (
- reqA, reqB, reqC, reqD, reqE, reqF, reqG *plumbing.SubscriptionRequest
- cleanupA, cleanupB, cleanupC, cleanupD, cleanupE, cleanupF, cleanupG func()
- )
- BeforeEach(func() {
reqA = &plumbing.SubscriptionRequest{
Filter: &plumbing.Filter{
AppID: "some-app-id",
@@ -247,5 +241,3 @@ var _ = Describe("Router", func() {
})
})
})
- })
-})
