Skip to content

Commit

Permalink
Address review comments.
Browse files Browse the repository at this point in the history
Fixed unit tests.
  • Loading branch information
ishan16696 committed Feb 9, 2023
1 parent 2eabb53 commit aab027c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/snapshot/snapshotter/snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ func (ssr *Snapshotter) WasScheduledFullSnapshotMissed(timeWindow float64) bool
now := time.Now()
nextSnapSchedule := ssr.schedule.Next(now)

ssr.logger.Infof(" previous schedule: %v", miscellaneous.GetPrevScheduledSnapTime(nextSnapSchedule, timeWindow))
if miscellaneous.GetPrevScheduledSnapTime(nextSnapSchedule, timeWindow) == ssr.PrevFullSnapshot.CreatedOn {
ssr.logger.Info("previous full snapshot was taken at scheduled time, skipping the full snapshot at startup")
return false
Expand Down
2 changes: 1 addition & 1 deletion pkg/snapshot/snapshotter/snapshotter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ var _ = Describe("Snapshotter", func() {
fullSnapshotTimeWindow float64
)
BeforeEach(func() {
fullSnapshotTimeWindow = 23.5
fullSnapshotTimeWindow = 24
currentHour = time.Now().Hour()
currentMin = time.Now().Minute()
snapstoreConfig = &brtypes.SnapstoreConfig{Container: path.Join(outputDir, "default.bkp")}
Expand Down

0 comments on commit aab027c

Please sign in to comment.