鸣镝 9 năm trước cách đây
mục cha
commit
42cae5bf6e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)
 }