Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
69f5a43a
Verified
Commit
69f5a43a
authored
Apr 19, 2022
by
Chocobozzz
Browse files
Styling
parent
21dc539e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/tests/api/object-storage/videos.ts
View file @
69f5a43a
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import
'
mocha
'
import
*
as
chai
from
'
chai
'
import
bytes
from
'
bytes
'
import
*
as
chai
from
'
chai
'
import
{
stat
}
from
'
fs-extra
'
import
{
merge
}
from
'
lodash
'
import
{
...
...
@@ -403,14 +403,15 @@ describe('Object storage for videos', function () {
describe
(
'
Test object storage with file bigger than upload part
'
,
function
()
{
let
fixture
:
string
const
maxUploadPart
=
'
5
mb
'
const
maxUploadPart
=
'
5
MB
'
before
(
async
function
()
{
fixture
=
await
generateHighBitrateVideo
()
const
fixtureStat
=
await
stat
(
fixture
)
if
(
bytes
.
parse
(
maxUploadPart
)
>
fixtureStat
.
size
)
{
throw
Error
(
`Fixture file is too small (
${
fixtureStat
.
size
}
) to make sense for this test.`
)
const
{
size
}
=
await
stat
(
fixture
)
if
(
bytes
.
parse
(
maxUploadPart
)
>
size
)
{
throw
Error
(
`Fixture file is too small (
${
size
}
) to make sense for this test.`
)
}
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment