You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
// Then: the workspace should be started using the previous template version, and not the updated version.
104
+
<-time.After(5*time.Second)
105
+
ws:=mustWorkspace(t,client,workspace.ID)
106
+
require.NotEqual(t,workspace.LatestBuild.ID,ws.LatestBuild.ID,"expected a workspace build to occur")
107
+
require.Equal(t,codersdk.ProvisionerJobSucceeded,ws.LatestBuild.Job.Status,"expected provisioner job to have succeeded")
108
+
require.Equal(t,database.WorkspaceTransitionStart,ws.LatestBuild.Transition,"expected latest transition to be start")
109
+
require.Equal(t,workspace.LatestBuild.TemplateVersionID,ws.LatestBuild.TemplateVersionID,"expected workspace build to be using the old template version")