Skip to content

Commit 4d2ddd2

Browse files
committed
Fix: unit test
1 parent 8b56e7b commit 4d2ddd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/start.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (r *RootCmd) start() *clibase.Cmd {
4949
// It's possible for a workspace build to fail due to the template requiring starting
5050
// workspaces with the active version.
5151
if cerr, ok := codersdk.AsError(err); ok && cerr.StatusCode() == http.StatusForbidden {
52-
_, _ = fmt.Fprintln(inv.Stdout, "Unable to start with the template version from your last build. Policy may require you to restart with the current active template version.")
52+
_, _ = fmt.Fprintln(inv.Stdout, "Unable to start the workspace with the template version from the last build. Policy may require you to restart with the current active template version.")
5353
build, err = startWorkspace(inv, client, workspace, parameterFlags, WorkspaceUpdate)
5454
if err != nil {
5555
return xerrors.Errorf("start workspace with active template version: %w", err)

enterprise/cli/start_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func TestStart(t *testing.T) {
160160
ws = coderdtest.MustWorkspace(t, c.Client, ws.ID)
161161
require.Equal(t, c.ExpectedVersion, ws.LatestBuild.TemplateVersionID)
162162
if initialTemplateVersion != ws.LatestBuild.TemplateVersionID {
163-
require.Contains(t, buf.String(), "Failed to restart with the template version from your last build. Policy may require you to restart with the current active template version.")
163+
require.Contains(t, buf.String(), "Unable to start the workspace with the template version from the last build")
164164
}
165165
})
166166
}

0 commit comments

Comments
 (0)