Skip to content

Unable to add tests for findAllWorkspaceAndInstances #4122

@mads-hartmann

Description

@mads-hartmann

Bug description

I was trying to write a test for my changes to components/gitpod-db/src/typeorm/workspace-db-impl.ts in #4111. The specific method I'm modifying doesn't have any existing tests and when I added one it appeared to be failing for reasons unrelated to my code changes. I verified by creating a fresh branch off main to reproduce the problem (see draft PR here description for more details)

Steps to reproduce

To reproduce

  1. Open a workspace from my draft PR that reproduces the issue: https://gitpod.io/#https://github.com/gitpod-io/gitpod/pull/4120
  2. In one terminal kubectl port-forward statefulset/mysql 23306:3306
  3. In another terminal cd components/gitpod-db and yarn db-test

Expected behavior

I would have expected my new test to pass, or at least fail on the assertion rather than having an underlying exception being thrown

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions