Skip to content

Fix flaky test TestDo_rateLimit_abuseRateLimitError_xRateLimitReset #3987

@alexandear

Description

@alexandear

Test:

func TestDo_rateLimit_abuseRateLimitError_xRateLimitReset(t *testing.T) {

Short logs:

testing .
--- FAIL: TestDo_rateLimit_abuseRateLimitError_xRateLimitReset (0.00s)
    github_test.go:1885: abuseRateLimitErr RetryAfter = 2m1.999907571s, want 2m3s
    github_test.go:1900: abuseRateLimitErr RetryAfter = 2m1.999834194s, want 2m3s

FAIL
coverage: 99.2% of statements
FAIL	github.com/google/go-github/v82/github	3.398s
	github.com/google/go-github/v82/test/fields		coverage: 0.0% of statements
?   	github.com/google/go-github/v82/test/integration	[no test files]
FAIL

Full logs from the actions run: logs_56960921161.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions