Skip to content

Commit

Permalink
comment size to check if that causes nc tests te fail
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Sep 20, 2023
1 parent 7368ad8 commit 061382a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ func TempDir(name string) (string, error) {

// Upload can be used to initiate an upload and do the upload to a storage.FS in one step
func Upload(ctx context.Context, fs storage.FS, ref *provider.Reference, content []byte) error {
size := len(content)
uploadIds, err := fs.InitiateUpload(ctx, ref, int64(size), map[string]string{})
/*
FIXME always send size ... needs upated nextcloud tests
size := len(content)
uploadIds, err := fs.InitiateUpload(ctx, ref, int64(size), map[string]string{})
*/
uploadIds, err := fs.InitiateUpload(ctx, ref, 0, map[string]string{})
if err != nil {
return err
}
Expand Down

0 comments on commit 061382a

Please sign in to comment.