diff --git a/cmd/guru/guru_test.go b/cmd/guru/guru_test.go index 40261369bd..34322552f6 100644 --- a/cmd/guru/guru_test.go +++ b/cmd/guru/guru_test.go @@ -269,8 +269,8 @@ func TestGuru(t *testing.T) { t.Errorf("Create(%s) failed: %s", got, err) continue } - defer gotfh.Close() defer os.Remove(got) + defer gotfh.Close() // Run the guru on each query, redirecting its output // and error (if any) to the foo.got file.