mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
allow longer demos
This commit is contained in:
parent
a49614765f
commit
b4b7c4142f
2 changed files with 3 additions and 3 deletions
|
|
@ -106,8 +106,8 @@ class UploadProvider extends BaseProvider {
|
||||||
return 'Demos cant be more than 200MB in size';
|
return 'Demos cant be more than 200MB in size';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($header->getDuration() > (60 * 60)) {
|
if ($header->getDuration() > (90 * 60)) {
|
||||||
return 'Demos cant be longer than one hour';
|
return 'Demos cant be longer than one and a half hour';
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ class UploadProviderTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testValidateHeaderToLong() {
|
public function testValidateHeaderToLong() {
|
||||||
$this->assertEquals('Demos cant be longer than one hour', $this->uploadProvider->validateHeader(
|
$this->assertEquals('Demos cant be longer than one and a half hour', $this->uploadProvider->validateHeader(
|
||||||
9999,
|
9999,
|
||||||
new Header(
|
new Header(
|
||||||
'HL2DEMO',
|
'HL2DEMO',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue