Skip to content

Call the fatal function within the goroutine of the main test function #1009

@ririli

Description

@ririli

Hello, I have found that in the tcp_integration_test.go file, there is a situation where the fatal function is called within a goroutine. L96andL100
It seems that I have read somewhere that this kind of writing is inappropriate. Because in the "groutine" context, "fatal" does not terminate the main process and may even cause an unexpected panic.
How do you view this situation? I hope to receive your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions