Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1cb4d0

Browse files
chore: typos
1 parent dca1bc7 commit d1cb4d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enterprise/coderd/schedule/template_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ func TestTemplateTTL(t *testing.T) {
915915
})
916916
require.NoError(t, err)
917917

918-
// Create a workspace with a TTL different to the template schedule
918+
// Create a workspace with a TTL different than the template's default TTL
919919
workspace := dbgen.Workspace(t, db, database.WorkspaceTable{
920920
OwnerID: user.ID,
921921
TemplateID: template.ID,
@@ -924,7 +924,7 @@ func TestTemplateTTL(t *testing.T) {
924924
Ttl: sql.NullInt64{Valid: true, Int64: int64(48 * time.Hour)},
925925
})
926926

927-
// Ensure the workspace's start with the correct TTLs
927+
// Ensure the workspace start with the correct TTLs
928928
require.Equal(t, sql.NullInt64{Valid: true, Int64: int64(48 * time.Hour)}, workspace.Ttl)
929929

930930
// Disable AllowUserAutostop
@@ -934,7 +934,7 @@ func TestTemplateTTL(t *testing.T) {
934934
})
935935
require.NoError(t, err)
936936

937-
// Ensure the workspace's ends with the correct TTLs
937+
// Ensure the workspace ends with the correct TTLs
938938
ws, err := db.GetWorkspaceByID(ctx, workspace.ID)
939939
require.NoError(t, err)
940940
require.Equal(t, sql.NullInt64{Valid: true, Int64: int64(24 * time.Hour)}, ws.Ttl)

0 commit comments

Comments
 (0)