FailNow test if initial condition is wrong
Vladimir Bauer
2 years ago
| 233 | 233 |
|
| 234 | 234 |
bars := (<-shutdown).([]*mpb.Bar)
|
| 235 | 235 |
if l := len(bars); l != 3 {
|
| 236 | |
t.Errorf("Expected len of bars: %d, got: %d", 3, l)
|
|
236 |
t.Fatalf("Expected len of bars: %d, got: %d", 3, l)
|
| 237 | 237 |
}
|
| 238 | 238 |
|
| 239 | 239 |
p.Wait()
|