鸣镝 9 年之前
父节点
当前提交
42cae5bf6e
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)
 }