You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's common to run multiple subtests inside a single point in the
matrix, but it turns out that's problematic: if one of those tests ends
up failing by using `m.T`, it will fail the outer test, not the one
that's currently running, ending up with the testing package printing
"subtest may have called FailNow on a parent test".
We could make sure to update `M.T` for each subtest, but that's
problematic itself, because multiple subtests will share a given `*M`
instance and if any of them happens to invoke `T.Parallel` then there's
a race condition.
Instead, make `M` just about the point in the matrix and add an explicit
`*testing.T` argument to the methods that it has that do checks.
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: Id83ba0fac6c4db7780d4086820aed4190dd5bd65
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200260
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
0 commit comments