satellite/repair: switch to piecestore.UploadReader part 2
Change-Id: I5a91d2960b037c7a3c96d01bc40404316ba028e3
This commit is contained in:
parent
95ff29cce1
commit
1f711523d5
@ -204,13 +204,7 @@ func TestUploadOverAvailable(t *testing.T) {
|
|||||||
orderLimit, err = signing.SignOrderLimit(ctx, signer, orderLimit)
|
orderLimit, err = signing.SignOrderLimit(ctx, signer, orderLimit)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
uploader, err := client.Upload(ctx, orderLimit, piecePrivateKey)
|
pieceHash, err := client.UploadReader(ctx, orderLimit, piecePrivateKey, bytes.NewReader(data))
|
||||||
require.NoError(t, err)
|
|
||||||
|
|
||||||
_, err = uploader.Write(data)
|
|
||||||
require.Error(t, err)
|
|
||||||
|
|
||||||
pieceHash, err := uploader.Commit(ctx)
|
|
||||||
if tt.err != "" {
|
if tt.err != "" {
|
||||||
require.Error(t, err)
|
require.Error(t, err)
|
||||||
require.Contains(t, err.Error(), tt.err)
|
require.Contains(t, err.Error(), tt.err)
|
||||||
|
Loading…
Reference in New Issue
Block a user