forked from FoundKeyGang/FoundKey
tests: disable timeouts for server setup
This commit is contained in:
parent
2e32715d36
commit
ac81acfe9d
11 changed files with 21 additions and 2 deletions
|
@ -8,6 +8,7 @@ describe('API visibility', () => {
|
||||||
let p: childProcess.ChildProcess;
|
let p: childProcess.ChildProcess;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ describe('API', () => {
|
||||||
let carol: any;
|
let carol: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
bob = await signup({ username: 'bob' });
|
bob = await signup({ username: 'bob' });
|
||||||
|
|
|
@ -13,6 +13,8 @@ describe('Block', () => {
|
||||||
let carol: any;
|
let carol: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
bob = await signup({ username: 'bob' });
|
bob = await signup({ username: 'bob' });
|
||||||
|
@ -65,9 +67,9 @@ describe('Block', () => {
|
||||||
assert.strictEqual(res.body.error.code, 'BLOCKED');
|
assert.strictEqual(res.body.error.code, 'BLOCKED');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// TODO: test that blocked user cannot be included in user list
|
it('cannot include blocked users in user lists');
|
||||||
|
|
||||||
// TODO: test that blocked user is removed from user list
|
it('removes users from user lists');
|
||||||
|
|
||||||
it('local timeline does not contain blocked users', async(async () => {
|
it('local timeline does not contain blocked users', async(async () => {
|
||||||
const aliceNote = await post(alice);
|
const aliceNote = await post(alice);
|
||||||
|
|
|
@ -23,6 +23,7 @@ describe('Fetch resource', () => {
|
||||||
let alicesPost: any;
|
let alicesPost: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
alicesPost = await post(alice, {
|
alicesPost = await post(alice, {
|
||||||
|
|
|
@ -12,6 +12,8 @@ describe('FF visibility', () => {
|
||||||
let follower: any;
|
let follower: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
bob = await signup({ username: 'bob' });
|
bob = await signup({ username: 'bob' });
|
||||||
|
|
|
@ -13,6 +13,8 @@ describe('Mute', () => {
|
||||||
let carol: any;
|
let carol: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
bob = await signup({ username: 'bob' });
|
bob = await signup({ username: 'bob' });
|
||||||
|
|
|
@ -13,6 +13,8 @@ describe('Note', () => {
|
||||||
let bob: any;
|
let bob: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
const connection = await initTestDb(true);
|
const connection = await initTestDb(true);
|
||||||
Notes = connection.getRepository(Note);
|
Notes = connection.getRepository(Note);
|
||||||
|
|
|
@ -14,6 +14,8 @@ describe('Creating a block activity', () => {
|
||||||
let carol: any;
|
let carol: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
await initTestDb();
|
await initTestDb();
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
|
|
|
@ -38,6 +38,8 @@ describe('Streaming', () => {
|
||||||
let list: any;
|
let list: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
const connection = await initTestDb(true);
|
const connection = await initTestDb(true);
|
||||||
Followings = connection.getRepository(Following);
|
Followings = connection.getRepository(Following);
|
||||||
|
|
|
@ -12,6 +12,8 @@ describe('Note thread mute', () => {
|
||||||
let carol: any;
|
let carol: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
bob = await signup({ username: 'bob' });
|
bob = await signup({ username: 'bob' });
|
||||||
|
|
|
@ -13,6 +13,8 @@ describe('users/notes', () => {
|
||||||
let jpgPngNote: any;
|
let jpgPngNote: any;
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
|
this.timeout(0);
|
||||||
|
|
||||||
p = await startServer();
|
p = await startServer();
|
||||||
alice = await signup({ username: 'alice' });
|
alice = await signup({ username: 'alice' });
|
||||||
const jpg = await uploadUrl(alice, 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/Lenna.jpg');
|
const jpg = await uploadUrl(alice, 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/Lenna.jpg');
|
||||||
|
|
Loading…
Reference in a new issue