Fix race in middleware tests [#150719472]
Fix race in middleware tests [#150719472]

Signed-off-by: Chris Piraino <f047703f03f13cc8e1b226aa8ba85c2dfc238f94@pivotal.io>

cloudfoundry-incubator/bbs,cloudfoundry-incubator/bbs