(namespace, name, key, value string)
| 351 | t.Fatalf("replacement creation after teardown: %v", result.err) |
| 352 | } |
| 353 | if result.finish == nil { |
| 354 | t.Fatal("replacement creation did not acquire the org mutation slot") |
| 355 | } |
| 356 | result.finish() |
| 357 | case <-time.After(time.Second): |
| 358 | t.Fatal("replacement creation did not resume after old stack teardown") |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | func TestOrgRouterShutdownDoesNotTeardownStackOwnedByConcurrentDestroy(t *testing.T) { |
| 363 | var shutdownCount atomic.Int32 |
| 364 | pool := &recordingOrgRouterPool{shutdownCount: &shutdownCount} |
| 365 | stack := &OrgStack{Pool: pool} |
| 366 | router := &OrgRouter{ |
no outgoing calls
no test coverage detected