aboutsummaryrefslogtreecommitdiff
path: root/tests/defaults/diriv_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/defaults/diriv_test.go')
-rw-r--r--tests/defaults/diriv_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/defaults/diriv_test.go b/tests/defaults/diriv_test.go
index 75f1511..9aba1f2 100644
--- a/tests/defaults/diriv_test.go
+++ b/tests/defaults/diriv_test.go
@@ -45,7 +45,7 @@ func TestDirIVRace(t *testing.T) {
for {
// Keep dir2 in the diriv cache
fd, err2 := os.Open(file2)
- if err2 != nil {
+ if err2 == nil {
fd.Close()
}
if stop {