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:
Matthew Heon
2018-01-04 16:04:46 -05:00
committed by Atomic Bot
parent 65d643caeb
commit 67b6c132d8
4 changed files with 290 additions and 226 deletions

View File

@ -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
}