Skip to content

Commit 0c92cde

Browse files
authored
test: restore len check for goimports (#1710)
I must have forgot to revert removing this in #1662. Currently this check is not being enforced. Found reviewing: #1686
1 parent 417b15e commit 0c92cde

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

all_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ func TestGoImports(t *testing.T) {
165165
if err := cmd.Run(); err != nil {
166166
t.Fatalf("goimports failed to run: %v\nOutput:\n%s", err, out.String())
167167
}
168+
if out.Len() > 0 {
169+
t.Errorf("goimports found unformatted files:\n%s", out.String())
170+
}
168171
}
169172

170173
func TestGoModTidy(t *testing.T) {

0 commit comments

Comments
 (0)