controller:test: Fix assert problem in volume_controller_test
Fix assert string problem. The value of replica's DataPath and NodeID
can never be nil, change to use not equal "" to assert.
@@ -445,8 +445,8 @@ func (s *TestSuite) runTestCases(c *C, testCases map[string]*VolumeTestCase) {
break
}
// validate DataPath and NodeID of replica have been set in scheduler
- c.Assert(retR.Spec.DataPath, NotNil)
- c.Assert(retR.Spec.NodeID, NotNil)
+ c.Assert(retR.Spec.DataPath, Not(Equals), "")
+ c.Assert(retR.Spec.NodeID, Not(Equals), "")
c.Assert(retR.Spec.NodeID, Equals, TestNode1)
c.Assert(retR.Status, DeepEquals, expectR.Status)
} else {
