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

Timeout waiting for port #133

Open
5 tasks done
alighafoori opened this issue Jul 6, 2023 · 0 comments
Open
5 tasks done

Timeout waiting for port #133

alighafoori opened this issue Jul 6, 2023 · 0 comments
Labels
status: review needed Request for review

Comments

@alighafoori
Copy link

Describe the bug

Hi
I got this error, how can I solve this problem?

`src/tests/user.spec.ts

Error: Timeout waiting for port 7501 after 32 retries with 500ms interval.

undefined`

code
`
import { setup, $fetch } from 'vite-test-utils';
import { expect, describe, it,test } from 'vitest';

await setup({
// test context options
server: true
});

test('create a todo', async () => {
const form =JSON.stringify({ email: '[email protected]', password: 'sdwefsdgvvcs', rememberMe: false })
const { todo } = await $fetch('/user/login', {
method: 'POST',
body: form,
headers: {
accept: 'application/json'
}
})

expect(todo).toHaveProperty('uid')
expect(todo).toHaveProperty('created_at')
expect(todo).toContain({ text: 'task1', done: false })

})`

Reproduction

Reproduction

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 AMD A6-6310 APU with AMD Radeon R4 Graphics
    Memory: 2.78 GB / 10.97 GB
  Binaries:
    Node: 20.1.0 - C:\Program Files\nodejs\node.EXE
    npm: 9.6.7 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.6.3 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.67)
    Internet Explorer: 11.0.19041.1566

Used Package Manager

pnpm

Additional context

No response

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@alighafoori alighafoori added the status: review needed Request for review label Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: review needed Request for review
Projects
None yet
Development

No branches or pull requests

1 participant