Commit 30ce18e
committed
tests: copy attr per subtest to avoid data race on parallel tests
Each parallel subtest needs its own copy of the Attributes struct since
NewTestState mutates the tag field via the shared pointer. Without the
copy, both HTTP and SSH subtests would race on writing attr.tag.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>1 parent fb04bd1 commit 30ce18e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
0 commit comments