Skip to content

Slow system spurious TestSignDetached self-check failures #624

@jas4711

Description

@jas4711

Hi! I'm packaging this for Debian, and on our riscv64 builds, I got this self-test failure:

    sign_test.go:102: expected SigningTime to be now. Difference was -1.020778821s
--- FAIL: TestSignDetached (0.02s)

See: https://buildd.debian.org/status/fetch.php?pkg=gitsign&arch=riscv64&ver=0.12.0-3&stamp=1737565102&raw=0

I suspect this is triggered by this platform being really slow. From the error messages, maybe something is taking more than 1 second and this trigger a time comparison mismatch?

Could you make the allowed time window a bit larger? Say 5 seconds instead of 1 second?

/Simon

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions