Mark client transfer test as parallel

This commit is contained in:
Matt Joiner 2021-06-21 12:30:05 +10:00
parent 5fc42e8105
commit 9f5ce7e90e
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ func assertReadAllGreeting(t *testing.T, r io.ReadSeeker) {
// Creates a seeder and a leecher, and ensures the data transfers when a read // Creates a seeder and a leecher, and ensures the data transfers when a read
// is attempted on the leecher. // is attempted on the leecher.
func testClientTransfer(t *testing.T, ps testClientTransferParams) { func testClientTransfer(t *testing.T, ps testClientTransferParams) {
t.Parallel()
prevGOMAXPROCS := runtime.GOMAXPROCS(ps.GOMAXPROCS) prevGOMAXPROCS := runtime.GOMAXPROCS(ps.GOMAXPROCS)
newGOMAXPROCS := prevGOMAXPROCS newGOMAXPROCS := prevGOMAXPROCS