鸣镝 9 anni fa
parent
commit
42cae5bf6e
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      oss/crc_test.go

+ 1 - 0
oss/crc_test.go

@@ -384,4 +384,5 @@ func (s *OssCrcSuite) TestAppendObjectNegative(c *C) {
 
 	nextPos, initCRC, err = s.bucket.AppendObjectWithCRC(objectName, strings.NewReader(objectValue), nextPos, initCRC-1)
 	c.Assert(err, NotNil)
+	c.Assert(strings.HasPrefix(err.Error(), "oss: the crc"), Equals, true)
 }