Skip to content

test time bomb: token_test.go:57: expected nil error, but got failed to verify signed token: cms verification failure: x509: certificate has expired or is not yet valid: current time 2030-08-09T12:00:36Z is after 2029-03-18T10:00:00Z #47

Description

@jas4711

What is not working as expected?

Hi! I help maintain this in Debian. There is a rather short time bomb in these tests, that will fail in a couple of years.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1127119

=== RUN   TestVerify
    token_test.go:57: expected nil error, but got failed to verify signed token: cms verification failure: x509: certificate has expired or is not yet valid: current time 2030-08-09T12:00:36Z is after 2029-03-18T10:00:00Z
--- FAIL: TestVerify (0.00s)

Thanks,
Simon

What did you expect to happen?

PASS

How can we reproduce it?

Use datefudge or faketime and run go test

Describe your environment

Debian

What is the version of your tspclient-go Library?

1.0.0

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