Skip to content

Refactor DA tests using TestMain to avoid server overlap #919

Description

@Manav-Aggarwal

Currently, da_test.go tests all individually attempt to start mock grpc server and mock celestia node servers but those tests use the same port and if those tests are tried to run in parallel, we run into a port already used issue. Using TestMain (as described in https://ieftimov.com/posts/testing-in-go-subtests/) is one way to explore going about it.

Metadata

Metadata

Labels

T:bugSomething isn't workingT:testingRelated to testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions