[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Failing tests for privatebin-cli



Hi Martin,

On Fri Sep 26, 2025 at 5:50 PM CEST, Martin Dosch wrote:
the latest upstream release of privatebin-cli [0] always fails the tests
in the debin build environment:

=== RUN   TestPaste_MimeTypeInference/Text_file
paste_test.go:317: Error Trace: /build/reproducible-path/privatebin-cli-2.1.1/_build/src/go.gearno.de/privatebin/paste_test.go:317
       	Error:      	"data:application/octet-stream;base64,YXR0YWNobWVudCBjb250ZW50" does not contain "data:text/plain"
       	Test:       	TestPaste_MimeTypeInference/Text_file

But when running the tests manually it works:

go test .
ok  	go.gearno.de/privatebin/v2	0.014s

I had a look at the dependencies, but didn't spot anything suspicious.
I would highly appreciate if someone could give some hints how to debug
this.

Maybe you could try checking if this is because tests aren't being run from the source directory root, but in the build directory instead. In one of the packages I have updated recently, the issue was just that, and I've fixed it via a symlink. You can find the commit here: <https://salsa.debian.org/go-team/packages/golang-github-gonvenience-ytbx/-/commit/c0e4564be55b0a84f86648d51352a8fbb9d0a73e>

Maybe this applies to your issue too!

Bye :)


Reply to: