We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 700722f + f8f6f7c commit ad71802Copy full SHA for ad71802
container/state.go
@@ -366,13 +366,6 @@ func (s *State) IsRemovalInProgress() bool {
366
return res
367
}
368
369
-// SetDead sets the container state to "dead"
370
-func (s *State) SetDead() {
371
- s.Lock()
372
- s.Dead = true
373
- s.Unlock()
374
-}
375
-
376
// IsDead returns whether the Dead flag is set. Used by Container to check whether a container is dead.
377
func (s *State) IsDead() bool {
378
s.Lock()
container/state_test.go
@@ -109,7 +109,9 @@ func TestStateRunStop(t *testing.T) {
109
110
111
// Set the state to dead and removed.
112
- s.SetDead()
+ s.Lock()
113
+ s.Dead = true
114
+ s.Unlock()
115
s.SetRemoved()
116
117
// Wait for removed status or timeout.
0 commit comments