Skip to content

Commit

Permalink
Ensure that we handle all errors
Browse files Browse the repository at this point in the history
To prevent delete server error'ing out with the introduction of os
interfaces, we should verify that it doesn't return an error.
  • Loading branch information
SimonRichardson committed Mar 13, 2020
1 parent caffd86 commit cd14e20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nova/live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,10 @@ func (s *LiveTests) TestServerOSInterfaces(c *gc.C) {
}},
})
c.Assert(err, gc.IsNil)
defer s.nova.DeleteServer(entity.Id)
defer func() {
err := s.nova.DeleteServer(entity.Id)
c.Assert(err, gc.IsNil)
}()
s.waitTestServerCompleteBuilding(c, entity.Id)

server, err := s.nova.GetServer(entity.Id)
Expand Down

0 comments on commit cd14e20

Please sign in to comment.