Skip to content

Commit 3d7b40e

Browse files
committed
chore: minor fixes
1 parent ae16155 commit 3d7b40e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cli/create_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ func TestCreateWithPreset(t *testing.T) {
676676
firstParameterValue = "1"
677677

678678
firstOptionalParameterName = "first_optional_parameter"
679-
firstOptionParameterDescription = "This is the first optional parameter"
679+
firstOptionalParameterDescription = "This is the first optional parameter"
680680
firstOptionalParameterValue = "1"
681681
secondOptionalParameterName = "second_optional_parameter"
682682
secondOptionalParameterDescription = "This is the second optional parameter"
@@ -698,7 +698,7 @@ func TestCreateWithPreset(t *testing.T) {
698698
Options: []*proto.RichParameterOption{
699699
{
700700
Name: firstOptionalParameterName,
701-
Description: firstOptionParameterDescription,
701+
Description: firstOptionalParameterDescription,
702702
Value: firstOptionalParameterValue,
703703
},
704704
{

enterprise/cli/create_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ func TestEnterpriseCreateWithPreset(t *testing.T) {
279279

280280
state, err := reconciler.SnapshotState(ctx, db)
281281
require.NoError(t, err)
282+
require.Len(t, presets, 1)
282283
ps, err := state.FilterByPreset(presets[0].ID)
283284
require.NoError(t, err)
284285
require.NotNil(t, ps)
@@ -298,6 +299,7 @@ func TestEnterpriseCreateWithPreset(t *testing.T) {
298299

299300
var runningPrebuilds []database.GetRunningPrebuiltWorkspacesRow
300301
testutil.Eventually(ctx, t, func(context.Context) bool {
302+
runningPrebuilds = nil
301303
rows, err := db.GetRunningPrebuiltWorkspaces(ctx)
302304
if err != nil {
303305
return false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy