Create a test arbiter for benchmarks.
()
| 145 | |
| 146 | |
| 147 | def create_arbiter(): |
| 148 | """Create a test arbiter for benchmarks.""" |
| 149 | cfg = Config() |
| 150 | cfg.set("dirty_timeout", 300) |
| 151 | log = MockLog() |
| 152 | |
| 153 | arbiter = DirtyArbiter(cfg=cfg, log=log) |
| 154 | arbiter.alive = True |
| 155 | arbiter.workers = {1234: mock.Mock()} |
| 156 | arbiter.worker_sockets = {1234: '/tmp/worker.sock'} |
| 157 | |
| 158 | return arbiter |
| 159 | |
| 160 | |
| 161 | class BenchmarkResults: |
no test coverage detected