(t *testing.T)
| 264 | } |
| 265 | |
| 266 | func TestUpgraderTimeout(t *testing.T) { |
| 267 | t.Parallel() |
| 268 | |
| 269 | u := newTestUpgrader(Options{ |
| 270 | UpgradeTimeout: 10 * time.Millisecond, |
| 271 | }) |
| 272 | defer u.Stop() |
| 273 | |
| 274 | new, errs := u.upgradeProc(t) |
| 275 | |
| 276 | if sig := new.recvSignal(nil); sig != os.Kill { |
| 277 | t.Error("Expected os.Kill, got", sig) |
| 278 | } |
| 279 | |
| 280 | if err := <-errs; err == nil { |
| 281 | t.Error("Expected Upgrade to return error when new child times out") |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | func TestUpgraderListenConfig(t *testing.T) { |
| 286 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…