Skip to content

pkg/domain: Test case TestGetLastExpectedTime failed in Australia/Lord_Howe timezone. #52353

@bb7133

Description

@bb7133

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Run TestGetLastExpectedTime in TZ Australia/Lord_Howe:

➜  tidb git:(master) ✗ TZ="Australia/Lord_Howe" go test --tags=intest -run ^TestGetLastExpectedTime$ "github.com/pingcap/tidb/pkg/domain"

--- FAIL: TestGetLastExpectedTime (0.00s)
    ru_stats_test.go:144:
        	Error Trace:	/Users/bb7133/Projects/gopath/src/github.com/pingcap/tidb/pkg/domain/ru_stats_test.go:144
        	Error:      	Not equal:
        	            	expected: time.Date(2023, time.December, 28, 10, 0, 0, 0, time.Local)
        	            	actual  : time.Date(2023, time.December, 28, 9, 0, 0, 0, time.Local)

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,2 +1,2 @@
        	            	-(time.Time) 2023-12-28 10:00:00 +1100 +11
        	            	+(time.Time) 2023-12-28 09:00:00 +1100 +11

        	Test:       	TestGetLastExpectedTime
FAIL
FAIL	github.com/pingcap/tidb/pkg/domain	1.402s
FAIL

4. What is your TiDB version? (Required)

Latest master(555ce02)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions