Skip to content

Add unit test for selectPoolSandbox empty-pod-list branch #56

Closed

Description

@pdettori

Follow-up from P2 (#46, PR #53).

harness/src/select-sandbox.ts throws a plain Error("no Running pods for pool selector ...") when a pool selector is configured but listPoolPods returns an empty list. This branch is currently untested (the existing null-return test passes an empty list only in the no-selector fallback shape).

Fix: add a direct unit test: pool selector set + listPods: async () => [] → expect the "no Running pods" Error (distinct from SandboxPoolSaturatedError).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions