From cc0a603ef8a691b01fbd0f6a99e7d4e1d36608f7 Mon Sep 17 00:00:00 2001 From: leilaes Date: Wed, 10 Apr 2019 19:43:34 +1200 Subject: [PATCH] Add CodeLingo Tenet to fix missing close file --- codelingo.yaml | 4 ++++ tests/fsck/fsck_test.go | 1 + 2 files changed, 5 insertions(+) create mode 100644 codelingo.yaml diff --git a/codelingo.yaml b/codelingo.yaml new file mode 100644 index 0000000..8e5d778 --- /dev/null +++ b/codelingo.yaml @@ -0,0 +1,4 @@ +tenets: +- import: codelingo/effective-go +- import: codelingo/code-review-comments +- import: codelingo/rfjakob-gocryptfs diff --git a/tests/fsck/fsck_test.go b/tests/fsck/fsck_test.go index 5ece6cd..f56e21c 100644 --- a/tests/fsck/fsck_test.go +++ b/tests/fsck/fsck_test.go @@ -85,6 +85,7 @@ func TestExampleFses(t *testing.T) { t.Errorf("fsck returned code %d but fs should be clean", code) } } + dirfd.Close() } // TestTerabyteFile verifies that fsck does something intelligent when it hits