Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
berejant committed Sep 26, 2024
1 parent e37c091 commit 09cb5fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dekanat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestCheckDekanatDb(t *testing.T) {

t.Run("changeEducationYear", func(t *testing.T) {
previousDatetime = time.Date(2022, 6, 1, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 1, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 15, 4, 0, 0, 0, loc)

previousDatetimeString = previousDatetime.Format(StorageTimeFormat)
expectedDatetimeString = expectedDatetime.Format(StorageTimeFormat)
Expand All @@ -211,7 +211,7 @@ func TestCheckDekanatDb(t *testing.T) {

t.Run("ErrorSendCurrentYearEvent", func(t *testing.T) {
previousDatetime = time.Date(2022, 6, 1, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 1, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 15, 4, 0, 0, 0, loc)

previousDatetimeString = previousDatetime.Format(StorageTimeFormat)
expectedDatetimeString = expectedDatetime.Format(StorageTimeFormat)
Expand Down Expand Up @@ -239,8 +239,8 @@ func TestCheckDekanatDb(t *testing.T) {
})

t.Run("ChangeDatetime", func(t *testing.T) {
previousDatetime = time.Date(2023, 9, 1, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 2, 4, 0, 0, 0, loc)
previousDatetime = time.Date(2023, 9, 11, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 12, 4, 0, 0, 0, loc)

previousDatetimeString = previousDatetime.Format(StorageTimeFormat)
expectedDatetimeString = expectedDatetime.Format(StorageTimeFormat)
Expand All @@ -264,8 +264,8 @@ func TestCheckDekanatDb(t *testing.T) {
})

t.Run("ErrorSendSecondaryDbLoadedEvent", func(t *testing.T) {
previousDatetime = time.Date(2023, 9, 1, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 2, 4, 0, 0, 0, loc)
previousDatetime = time.Date(2023, 9, 11, 4, 0, 0, 0, loc)
expectedDatetime = time.Date(2023, 9, 12, 4, 0, 0, 0, loc)

previousDatetimeString = previousDatetime.Format(StorageTimeFormat)
expectedDatetimeString = expectedDatetime.Format(StorageTimeFormat)
Expand Down

0 comments on commit 09cb5fb

Please sign in to comment.