Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aksonov committed Mar 13, 2020
1 parent 9cbb799 commit b96970b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/wocky/friendshare.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Friend Share', () => {
// const differentLocation = {longitude: 1.1, latitude: 1.1, accuracy: 1}

beforeAll(async () => {
jest.setTimeout(30000)
jest.setTimeout(50000)
bob = await createUser()
alice = await createUser()
})
Expand Down Expand Up @@ -112,6 +112,7 @@ describe('Friend Share', () => {
// change location
await bob.setLocation(differentLocation)
await waitFor(() => !friend!.sharesLocation, 'end sharing location')
await waitFor(() => !bob.profile!.sharesLocation, 'end sharing location')
})

afterAll(async () => {
Expand Down

0 comments on commit b96970b

Please sign in to comment.