Skip to content

Commit c465cde

Browse files
authored
[ws-manager-mk2] fix test (#19816)
1 parent 7b615ab commit c465cde

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/ws-manager-mk2/controllers/workspace_controller_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,11 @@ var _ = Describe("WorkspaceController", func() {
410410
}
411411
})
412412

413+
expectFinalizerAndMarkBackupCompleted(ws, pod)
413414
expectWorkspaceCleanup(ws, pod)
414415
expectMetricsDelta(m, collectMetricCounts(wsMetrics, ws), metricCounts{
415416
restores: 1,
416-
backups: 0,
417+
backups: 1,
417418
backupFailures: 0,
418419
failures: 0,
419420
stops: map[StopReason]int{StopReasonRegular: 1},
@@ -454,11 +455,11 @@ var _ = Describe("WorkspaceController", func() {
454455
}
455456
})
456457

457-
// should not take a backup
458+
expectFinalizerAndMarkBackupCompleted(ws, pod)
458459
expectWorkspaceCleanup(ws, pod)
459460
expectMetricsDelta(m, collectMetricCounts(wsMetrics, ws), metricCounts{
460461
restores: 1,
461-
backups: 0,
462+
backups: 1,
462463
backupFailures: 0,
463464
failures: 1,
464465
stops: map[StopReason]int{StopReasonFailed: 1},

0 commit comments

Comments
 (0)