Skip to content

refactor: claim prebuilt workspace tests #17567

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

Merged
merged 6 commits into from
Apr 28, 2025

Conversation

evgeniy-scherbina
Copy link
Contributor

@evgeniy-scherbina evgeniy-scherbina commented Apr 24, 2025

Follow-up to: #17458
Specifically it addresses these discussions:

@evgeniy-scherbina evgeniy-scherbina changed the title refactor: claim prebuilds test refactor: claim prebuilds tests Apr 24, 2025
@evgeniy-scherbina evgeniy-scherbina changed the title refactor: claim prebuilds tests refactor: claim prebuilt workspace tests Apr 24, 2025
@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review April 24, 2025 20:25
@@ -28,6 +29,13 @@ import (
"github.com/coder/coder/v2/testutil"
)

type storeType int
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of going this far, can we not just fold the error store into the storySpy?
It could just take a claimErr in its constructor, and optionally return it in ClaimPrebuiltWorkspace.

That would simplify this implementation quite a lot.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, good idea

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@evgeniy-scherbina evgeniy-scherbina merged commit 9167cbf into main Apr 28, 2025
34 checks passed
@evgeniy-scherbina evgeniy-scherbina deleted the yevhenii/512-claim-prebuild-follow-up branch April 28, 2025 16:49
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants