Fix content copy to not ignore unexpected EOF

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2021-09-09 09:52:19 -07:00
parent ff75f7d489
commit 2458afeb13
2 changed files with 17 additions and 4 deletions

View File

@@ -65,10 +65,11 @@ func TestCopy(t *testing.T) {
},
{
name: "commit already exists",
source: defaultSource,
source: newCopySource("this already exists"),
writer: fakeWriter{commitFunc: func() error {
return errdefs.ErrAlreadyExists
}},
expected: "this already exists",
},
}