(t *testing.T)
| 313 | } |
| 314 | |
| 315 | func TestUpgraderConcurrentUpgrade(t *testing.T) { |
| 316 | t.Parallel() |
| 317 | |
| 318 | u := newTestUpgrader(Options{}) |
| 319 | defer u.Stop() |
| 320 | |
| 321 | new, _ := u.upgradeProc(t) |
| 322 | |
| 323 | go new.recvSignal(nil) |
| 324 | |
| 325 | if err := u.Upgrade(); err == nil { |
| 326 | t.Error("Expected Upgrade to refuse concurrent upgrade") |
| 327 | } |
| 328 | |
| 329 | new.exit(nil) |
| 330 | } |
| 331 | |
| 332 | func TestHasParent(t *testing.T) { |
| 333 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…