Skip to content

Commit

Permalink
test: Fix data races (#72)
Browse files Browse the repository at this point in the history
These tests hijack stdout.
They can't run in parallel.
  • Loading branch information
abhinav authored Feb 11, 2024
1 parent 2017ea5 commit 4b9f818
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ func hijackStdout(t testing.TB) (path string, close func() error) {
}

func TestBlock(t *testing.T) {
t.Parallel()

src := []byte("foo\n")

lines := text.NewSegments()
Expand Down Expand Up @@ -58,8 +56,6 @@ func TestBlock(t *testing.T) {
}

func TestScript(t *testing.T) {
t.Parallel()

var sb ScriptBlock

t.Run("Raw", func(t *testing.T) {
Expand Down

0 comments on commit 4b9f818

Please sign in to comment.