Skip to content

flake: e2e externalAuth.spec.ts #356

@johnstcn

Description

@johnstcn

Problem

See #212 for context.

==> Errors
/home/runner/work/coder/coder/site/e2e/tests/externalAuth.spec.ts:15:
  13 | import { beforeCoderTest, resetExternalAuthKey } from "../hooks";
  14 |
> 15 | test.beforeAll(async ({ baseURL }) => {
     |      ^
  16 | 	const srv = await createServer(gitAuth.webPort);
  17 |
  18 | 	// The GitHub validate endpoint returns the currently authenticated user!
"beforeAll" hook timeout of 30000ms exceeded.

It looks like the hardcoded port (50516) can be unavailable for more than 30s.

Proposed Solution

  1. Simply bump the timeout (chore(site/e2e): increase timeout for waitForPort from 30s to 60s coder#16528)

  2. Refactor the e2e tests to dynamically create a port.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy