diff --git a/local_file_test.go b/local_file_test.go index 0ab922a..7718d2d 100644 --- a/local_file_test.go +++ b/local_file_test.go @@ -18,7 +18,10 @@ func TestLocalFile(t *testing.T) { t.Error(err) } defer os.Remove(f.Name()) - f.WriteString("Gin Web Framework") + _, err = f.WriteString("Gin Web Framework") + if err != nil { + t.Error(err) + } f.Close() dir, filename := filepath.Split(f.Name())