diff --git a/lxd/container_test.go b/lxd/container_test.go
index <HASH>..<HASH> 100644
--- a/lxd/container_test.go
+++ b/lxd/container_test.go
@@ -138,7 +138,10 @@ func (suite *containerTestSuite) TestContainer_LoadFromDB() {
 	suite.Req.Nil(err)
 
 	// When loading from DB, we won't have a full LXC config
+	c.(*containerLXC).c = nil
 	c.(*containerLXC).cConfig = false
+	c2.(*containerLXC).c = nil
+	c2.(*containerLXC).cConfig = false
 
 	suite.Exactly(
 		c,
lxd/containers: Don't diff go-lxc structs