mirror of https://github.com/coder/coder.git
fix: disable tests broken by daylight savings (#10414)
This commit is contained in:
parent
3b50530a63
commit
c2e3648484
|
@ -209,25 +209,26 @@ func TestTimezoneOffsets(t *testing.T) {
|
|||
ExpectedOffset int
|
||||
}{
|
||||
{
|
||||
Name: "UTX",
|
||||
Name: "UTC",
|
||||
Loc: time.UTC,
|
||||
ExpectedOffset: 0,
|
||||
},
|
||||
{
|
||||
Name: "Eastern",
|
||||
Loc: must(time.LoadLocation("America/New_York")),
|
||||
ExpectedOffset: -4,
|
||||
},
|
||||
{
|
||||
Name: "Central",
|
||||
Loc: must(time.LoadLocation("America/Chicago")),
|
||||
ExpectedOffset: -5,
|
||||
},
|
||||
{
|
||||
Name: "Ireland",
|
||||
Loc: must(time.LoadLocation("Europe/Dublin")),
|
||||
ExpectedOffset: 1,
|
||||
},
|
||||
// The following test cases are broken re: daylight savings
|
||||
//{
|
||||
// Name: "Eastern",
|
||||
// Loc: must(time.LoadLocation("America/New_York")),
|
||||
// ExpectedOffset: -4,
|
||||
//},
|
||||
//{
|
||||
// Name: "Central",
|
||||
// Loc: must(time.LoadLocation("America/Chicago")),
|
||||
// ExpectedOffset: -5,
|
||||
//},
|
||||
//{
|
||||
// Name: "Ireland",
|
||||
// Loc: must(time.LoadLocation("Europe/Dublin")),
|
||||
// ExpectedOffset: 1,
|
||||
//},
|
||||
{
|
||||
Name: "HalfHourTz",
|
||||
// This timezone is +6:30, but the function rounds to the nearest hour.
|
||||
|
|
Loading…
Reference in New Issue