Skip to content

Commit b71b671

Browse files
committed
Parallelize tests
1 parent 6668d75 commit b71b671

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/x/markdown/accessibility_test.go

+10
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ func TestGlamourStyleColors(t *testing.T) {
9999
}
100100
for _, tt := range tests {
101101
t.Run(tt.name, func(t *testing.T) {
102+
t.Parallel()
103+
102104
assert.Equal(t, tt.want, *tt.c.code())
103105
})
104106
}
@@ -128,6 +130,8 @@ func TestAccessibleStyleConfig(t *testing.T) {
128130
}
129131
for _, tt := range tests {
130132
t.Run(tt.name, func(t *testing.T) {
133+
t.Parallel()
134+
131135
assert.Equal(t, tt.want, AccessibleStyleConfig(tt.theme))
132136
})
133137
}
@@ -150,11 +154,15 @@ func TestAccessibleDarkStyleConfig(t *testing.T) {
150154
}
151155

152156
func TestAccessibleDarkStyleConfigIs4Bit(t *testing.T) {
157+
t.Parallel()
158+
153159
cfg := accessibleDarkStyleConfig()
154160
validateColors(t, reflect.ValueOf(cfg), "StyleConfig")
155161
}
156162

157163
func TestAccessibleLightStyleConfig(t *testing.T) {
164+
t.Parallel()
165+
158166
cfg := accessibleLightStyleConfig()
159167
assert.Equal(t, black.code(), cfg.Document.StylePrimitive.Color)
160168
assert.Equal(t, brightBlue.code(), cfg.Link.Color)
@@ -171,6 +179,8 @@ func TestAccessibleLightStyleConfig(t *testing.T) {
171179
}
172180

173181
func TestAccessibleLightStyleConfigIs4Bit(t *testing.T) {
182+
t.Parallel()
183+
174184
cfg := accessibleLightStyleConfig()
175185
validateColors(t, reflect.ValueOf(cfg), "StyleConfig")
176186
}

0 commit comments

Comments
 (0)