Skip to content

Linter warnings for _test.go files #4869

Closed
@michel-laterman

Description

@michel-laterman

Running golangci-lint run on this repo returns a lot of warnings related in our test files.

A majority of these warnings are related to:

  • copying a variable within a loop i.e., tc := tc which is no longer needed (since go 1.22+)
  • using context.Background() instead of t.Context() in tests (added in go 1.24).

We should fix these issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions