Skip to content

testing: be more specific in Parallel error #80267

Description

@rsc
panic: testing: test using t.Setenv, t.Chdir, or cryptotest.SetGlobalRandom can not use t.Parallel [recovered, repanicked]

This error should say which one is being called at that moment.
And if t.Parallel is what is being called, the error should say which one was called.

(It's confusing to see an error about cryptotest.SetGlobalRandom in one of my tests that has nothing to do with crypto at all!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions