@@ -12,7 +12,7 @@ import (
12
12
)
13
13
14
14
func TestProcess (t * testing.T ) {
15
- t . Parallel ()
15
+ // NOTE. No Parallel, uses pkg lvl variables
16
16
type args struct {
17
17
handler.Info
18
18
}
@@ -117,7 +117,7 @@ func TestProcess(t *testing.T) {
117
117
for _ , ttv := range tests {
118
118
tt := ttv
119
119
t .Run (tt .name , func (t * testing.T ) {
120
- t . Parallel ()
120
+ // NOTE. No Parallel, uses pkg lvl variables
121
121
if handler .WorkToDo (tt .args .Any , tt .args .Err ) {
122
122
handler .Process (& tt .args .Info )
123
123
@@ -145,7 +145,8 @@ func Handle() {
145
145
}
146
146
147
147
func TestPreProcess_debug (t * testing.T ) {
148
- t .Parallel ()
148
+ // NOTE. No Parallel, uses pkg lvl variables
149
+
149
150
// in real case PreProcess is called from Handle function. So, we make our
150
151
// own Handle here. Now our test function name will be the Handle caller
151
152
// and that's what error stack tracing is all about
@@ -163,7 +164,7 @@ func TestPreProcess_debug(t *testing.T) {
163
164
}
164
165
165
166
func TestPreProcess (t * testing.T ) {
166
- t . Parallel ()
167
+ // NOTE. No Parallel, uses pkg lvl variables
167
168
type args struct {
168
169
handler.Info
169
170
a []any
@@ -233,7 +234,7 @@ func TestPreProcess(t *testing.T) {
233
234
for _ , ttv := range tests {
234
235
tt := ttv
235
236
t .Run (tt .name , func (t * testing.T ) {
236
- t . Parallel ()
237
+ // NOTE. No Parallel, uses pkg lvl variables
237
238
if handler .WorkToDo (tt .args .Any , tt .args .Err ) &&
238
239
len (tt .args .a ) > 0 {
239
240
0 commit comments