Skip to content

InstallLock guard causes some cmd unit tests to fail #37368

@peyremorgan

Description

@peyremorgan

Description

Steps to reproduce

  • clone the repo from github
  • open the project in a DevContainer in VS Code
  • run TAGS="bindata sqlite sqlite_unlock_notify" make build --> ok
  • run TAGS="bindata sqlite sqlite_unlock_notify" make test --> test failures in cmd/main_test.go ("Config is loaded before console logger is setup")

Gitea Version

f52b6f3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image

Git Version

N/A

Operating System

Devcontainer: mcr.microsoft.com/devcontainers/go:1.25-trixie

How are you running Gitea?

Unit tests run in a devcontainer.
Image: mcr.microsoft.com/devcontainers/go:1.25-trixie
Docker version: 29.4.0
Host OS: Linux Mint 22.3 - Xfce 64-bit

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions