Skip to content

Commit 2b4066e

Browse files
committed
Fix test suite
1 parent 312a71a commit 2b4066e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

dockerfmt_test.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package main
22

33
import (
44
"fmt"
5-
"os"
65
"path/filepath"
76
"strings"
87
"testing"
@@ -34,10 +33,10 @@ func TestFormatter(t *testing.T) {
3433
formattedLines := lib.FormatFileLines(originalLines, c)
3534

3635
// Write outFile to directory
37-
err = os.WriteFile(outFile, []byte(formattedLines), 0644)
38-
if err != nil {
39-
t.Fatalf("Failed to write to file %s: %v", outFile, err)
40-
}
36+
// err = os.WriteFile(outFile, []byte(formattedLines), 0644)
37+
// if err != nil {
38+
// t.Fatalf("Failed to write to file %s: %v", outFile, err)
39+
// }
4140

4241
// Read outFile
4342
outLines, err := lib.GetFileLines(outFile)

0 commit comments

Comments
 (0)