File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,10 @@ func TestRegisterType_Success(t *testing.T) {
129129 assert .Equal (t , "test" , customInstance .Value )
130130}
131131
132+ //nolint:paralleltest // Global state manipulation requires sequential execution
132133func TestClearGlobalFieldCache_Success (t * testing.T ) {
133- t .Parallel ()
134+ // Note: Not using t.Parallel() because this test manipulates global cache state
135+ // that could interfere with other parallel tests
134136
135137 // Define a test struct to build cache for
136138 type TestStruct struct {
@@ -156,8 +158,10 @@ func TestClearGlobalFieldCache_Success(t *testing.T) {
156158 assert .True (t , stats .Size < initialSize || initialSize == 0 )
157159}
158160
161+ //nolint:paralleltest // Global state manipulation requires sequential execution
159162func TestGetFieldCacheStats_Success (t * testing.T ) {
160- t .Parallel ()
163+ // Note: Not using t.Parallel() because this test manipulates global cache state
164+ // that could interfere with other parallel tests
161165
162166 // Clear cache first to get a clean state
163167 ClearGlobalFieldCache ()
You can’t perform that action at this time.
0 commit comments