Fix tests

pull/2293/head
Chocobozzz 2019-11-27 10:13:31 +01:00
parent a18bb55e9b
commit 2fa9c40e20
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 8 additions and 4 deletions

View File

@ -36,7 +36,7 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
super()
this.resolutions = [
{
{
id: '0p',
label: this.i18n('Audio-only')
},

View File

@ -177,7 +177,7 @@ async function updateActorAvatarInstance (actor: MActorDefault, info: AvatarInfo
if (actor.Avatar) {
// Don't update the avatar if the filename did not change
if (actor.Avatar.filename === info.name) return actor
if (actor.Avatar.fileUrl === info.fileUrl) return actor
try {
await actor.Avatar.destroy({ transaction: t })

View File

@ -103,8 +103,12 @@ describe('Test application behind a reverse proxy', function () {
})
it('Should rate limit signup', async function () {
for (let i = 0; i < 3; i++) {
await registerUser(server.url, 'test' + i, 'password')
for (let i = 0; i < 10; i++) {
try {
await registerUser(server.url, 'test' + i, 'password')
} catch {
// empty
}
}
await registerUser(server.url, 'test42', 'password', 429)