Skip to content

Commit

Permalink
Skip rotator tests instead of commenting them
Browse files Browse the repository at this point in the history
No description

---

Pull Request resolved: doublecloud/transfer#194
commit_hash:7af95cf99c3c01700b780edbb11daad1cc77a545
  • Loading branch information
laskoviymishka authored and robot-piglet committed Jan 30, 2025
1 parent e646c61 commit 85b3c4c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions pkg/abstract/model/endpoint_rotator_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func countDaysForYear(year, month, offset int) int64 {

func TestOffsetDateTestMonthHeavy(t *testing.T) {
checkYear := func(t *testing.T, year, partSize int) {
t.Helper()
t.Skip()
rcMonths := RotatorConfig{KeepPartCount: 0, PartType: RotatorPartMonth, PartSize: partSize, TimeColumn: ""}
nowTimestamp := time.Now()
for offset := 1; offset < 15; offset++ {
Expand All @@ -311,23 +311,23 @@ func TestOffsetDateTestMonthHeavy(t *testing.T) {
t.Run("check year 2000 part size 1", func(t *testing.T) { checkYear(t, 2000, 1) })
t.Run("check year 2000 part size 2", func(t *testing.T) { checkYear(t, 2000, 2) })
t.Run("check year 2004 part size 3", func(t *testing.T) { checkYear(t, 2004, 3) })
//t.Run("check year 2005 part size 4", func(t *testing.T) { checkYear(t, 2005, 4) })
t.Run("check year 2005 part size 4", func(t *testing.T) { checkYear(t, 2005, 4) })
t.Run("check year 2024 part size 1", func(t *testing.T) { checkYear(t, 2024, 1) })
t.Run("check year 2028 part size 1", func(t *testing.T) { checkYear(t, 2028, 1) })
//t.Run("check year 2400 part size 1", func(t *testing.T) { checkYear(t, 2005, 1) })
t.Run("check year 2400 part size 1", func(t *testing.T) { checkYear(t, 2005, 1) })
t.Run("check year 2400 part size 2", func(t *testing.T) { checkYear(t, 2024, 2) })
t.Run("check year 2400 part size 3", func(t *testing.T) { checkYear(t, 2028, 3) })

// not leap years
//t.Run("check year 2021 part size 1", func(t *testing.T) { checkYear(t, 2021, 1) })
//t.Run("check year 2021 part size 2", func(t *testing.T) { checkYear(t, 2021, 2) })
//t.Run("check year 2021 part size 3", func(t *testing.T) { checkYear(t, 2021, 3) })
//t.Run("check year 2021 part size 5", func(t *testing.T) { checkYear(t, 2021, 5) })
//t.Run("check year 2021 part size 6", func(t *testing.T) { checkYear(t, 2021, 6) })
//t.Run("check year 2021 part size 7", func(t *testing.T) { checkYear(t, 2021, 7) })
//t.Run("check year 2100 part size 1", func(t *testing.T) { checkYear(t, 2100, 1) })
//t.Run("check year 2100 part size 5", func(t *testing.T) { checkYear(t, 2100, 5) })
//t.Run("check year 2100 part size 12", func(t *testing.T) { checkYear(t, 2100, 12) })
t.Run("check year 2021 part size 1", func(t *testing.T) { checkYear(t, 2021, 1) })
t.Run("check year 2021 part size 2", func(t *testing.T) { checkYear(t, 2021, 2) })
t.Run("check year 2021 part size 3", func(t *testing.T) { checkYear(t, 2021, 3) })
t.Run("check year 2021 part size 5", func(t *testing.T) { checkYear(t, 2021, 5) })
t.Run("check year 2021 part size 6", func(t *testing.T) { checkYear(t, 2021, 6) })
t.Run("check year 2021 part size 7", func(t *testing.T) { checkYear(t, 2021, 7) })
t.Run("check year 2100 part size 1", func(t *testing.T) { checkYear(t, 2100, 1) })
t.Run("check year 2100 part size 5", func(t *testing.T) { checkYear(t, 2100, 5) })
t.Run("check year 2100 part size 12", func(t *testing.T) { checkYear(t, 2100, 12) })
}

func getPartitionBin(t *testing.T) {
Expand Down

0 comments on commit 85b3c4c

Please sign in to comment.