[ARVADOS] updated: 96cf2bbec0b1178f94dd7b107245d328442b22ec
git at public.curoverse.com
git at public.curoverse.com
Tue Sep 8 13:37:38 EDT 2015
Summary of changes:
services/keepstore/collision_test.go | 4 ++++
1 file changed, 4 insertions(+)
via 96cf2bbec0b1178f94dd7b107245d328442b22ec (commit)
from e35c34214b2893f329043f2cca7cc0233bac553f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 96cf2bbec0b1178f94dd7b107245d328442b22ec
Author: Tom Clegg <tom at curoverse.com>
Date: Tue Sep 8 13:37:00 2015 -0400
7121: Add collisionOrCorrupt->DiskHashError test cases where the mismatched data is in buf1.
diff --git a/services/keepstore/collision_test.go b/services/keepstore/collision_test.go
index e6cfd16..dc2e210 100644
--- a/services/keepstore/collision_test.go
+++ b/services/keepstore/collision_test.go
@@ -39,6 +39,10 @@ func (s *CollisionSuite) TestCollisionOrCorrupt(c *check.C) {
check.Equals, DiskHashError)
c.Check(collisionOrCorrupt(fooMD5, []byte{}, nil, bytes.NewBufferString("")),
check.Equals, DiskHashError)
+ c.Check(collisionOrCorrupt(fooMD5, []byte{'f', 'O'}, nil, bytes.NewBufferString("o")),
+ check.Equals, DiskHashError)
+ c.Check(collisionOrCorrupt(fooMD5, []byte{'f', 'O', 'o'}, nil, nil),
+ check.Equals, DiskHashError)
c.Check(collisionOrCorrupt(fooMD5, []byte{}, nil, iotest.TimeoutReader(iotest.OneByteReader(bytes.NewBufferString("foo")))),
check.Equals, iotest.ErrTimeout)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list