Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How i can solve issue of Async #545

Closed
amrsa1 opened this issue Jan 20, 2020 · 2 comments
Closed

How i can solve issue of Async #545

amrsa1 opened this issue Jan 20, 2020 · 2 comments
Labels

Comments

@amrsa1
Copy link

amrsa1 commented Jan 20, 2020

im getting this error below but happened randomly some times it happens sometime is not

it('1- API will return 200 and shows company service after successful login ', (callback)=> {
return frisby
.get('https://cdddisddsisdsusers/current')
.inspectJSON()
.expect('status', 200)
.done(callback)
});

● Backend Validation › 1- API will return 200 and shows company service after successful login

: Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Error:

  65 | 
  66 | 
> 67 |     it('1- API will return 200 and shows company service after successful login ', (callback)=> {
     |     ^
  68 |       return frisby
  69 |             .get('https://testt/users/current')
  70 |                     .inspectJSON()

  at new Spec (node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)
  at Suite.<anonymous> (testingEnv/mcTesting.js:67:5)
  at Object.<anonymous> (testingEnv/mcTesting.js:11:1)
@amrsa1
Copy link
Author

amrsa1 commented Jan 20, 2020

@vlucas @H1Gdev

@H1Gdev
Copy link
Collaborator

H1Gdev commented Jan 21, 2020

@amrkamel1

See below for timeouts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants