Skip to content

Commit 86d93c5

Browse files
committed
update expectations in TestWorkspaceBuildWithPreset
1 parent 2fad945 commit 86d93c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

coderd/wsbuilder/wsbuilder_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,7 @@ func TestWorkspaceBuildWithPreset(t *testing.T) {
789789
// Inputs
790790
withTemplate,
791791
withActiveVersion(nil),
792+
withTemplateVersionPreset(presetID),
792793
withLastBuildNotFound,
793794
withTemplateVersionVariables(activeVersionID, nil),
794795
withParameterSchemas(activeJobID, nil),
@@ -960,6 +961,12 @@ func withInactiveVersion(params []database.TemplateVersionParameter) func(mTx *d
960961
}
961962
}
962963

964+
func withTemplateVersionPreset(presetID uuid.UUID) func(mTx *dbmock.MockStore) {
965+
return func(mTx *dbmock.MockStore) {
966+
mTx.EXPECT().GetPresetParametersByPresetID(gomock.Any(), presetID).Return(nil, nil)
967+
}
968+
}
969+
963970
func withLastBuildFound(mTx *dbmock.MockStore) {
964971
mTx.EXPECT().GetLatestWorkspaceBuildByWorkspaceID(gomock.Any(), workspaceID).
965972
Times(1).

0 commit comments

Comments
 (0)