'Sampling returns reasons when probes fail.'

@capture_logging(None)
def test_bad_probes(self, logger):

    samples_ready = benchmark(FakeScenario(), FakeOperation(repeat(False)), FakeMetric(count(5)), 3)
    def check(outputs):
        for s in outputs[0]:
            if ('reason' in s):
                s['reason'] = None
        self.assertEqual(outputs, ([{'success': False, 'reason': None} for _ in [5, 6, 7]], None))
    samples_ready.addCallback(check)
    return samples_ready
