Skip to content

Commit 5300a91

Browse files
committed
Run parser tests in parallel
1 parent ee42e81 commit 5300a91

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

parser/parser_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ func TestParser(t *testing.T) {
5555
continue
5656
}
5757

58-
testName := entry.Name()
59-
testDir := filepath.Join(testdataDir, testName)
58+
testDir := filepath.Join(testdataDir, entry.Name())
59+
60+
t.Run(entry.Name(), func(t *testing.T) {
61+
t.Parallel()
6062

61-
t.Run(testName, func(t *testing.T) {
6263
// Create context with 1 second timeout
6364
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second)
6465
defer cancel()

0 commit comments

Comments
 (0)