scrypto: fix racy test
GitOrigin-RevId:
@@ -117,8 +117,9 @@ func TestCAPolicyCreateChain(t *testing.T) {
for name, tc := range testCases {
name, tc := name, tc
+ // This test must not be run in parallel because we modify the CA
+ // certificate struct.
t.Run(name, func(t *testing.T) {
- t.Parallel()
ca := cppki.CAPolicy{
Validity: tc.Validity,
Certificate: chain[1],
