Skip to content

Commit 646b07d

Browse files
Copilotjakebailey
andcommitted
Add t.Parallel() calls to format tests
Co-authored-by: jakebailey <[email protected]>
1 parent 531ffef commit 646b07d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎internal/ls/format_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
// Test for issue: Panic Handling textDocument/onTypeFormatting
1414
// This reproduces the panic when pressing enter in an empty file
1515
func TestGetFormattingEditsAfterKeystroke_EmptyFile(t *testing.T) {
16+
t.Parallel()
1617
// Create an empty file
1718
text := ""
1819
sourceFile := parser.ParseSourceFile(ast.SourceFileParseOptions{
@@ -42,6 +43,7 @@ func TestGetFormattingEditsAfterKeystroke_EmptyFile(t *testing.T) {
4243

4344
// Test with a simple statement
4445
func TestGetFormattingEditsAfterKeystroke_SimpleStatement(t *testing.T) {
46+
t.Parallel()
4547
// Create a file with a simple statement
4648
text := "const x = 1"
4749
sourceFile := parser.ParseSourceFile(ast.SourceFileParseOptions{

0 commit comments

Comments
 (0)