mirror of
https://github.com/containers/podman.git
synced 2025-06-18 07:28:57 +08:00
Modify unit tests for state to run on all state implementations
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #229 Approved by: rhatdan
This commit is contained in:
@ -651,6 +651,8 @@ func (s *SQLState) SaveContainer(ctr *Container) error {
|
||||
return errors.Wrapf(err, "error retrieving number of rows modified by update of container %s", ctr.ID())
|
||||
}
|
||||
if rows == 0 {
|
||||
// Container was probably removed elsewhere
|
||||
ctr.valid = false
|
||||
return ErrNoSuchCtr
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user