From be62ead7be7d9a4a5e27d40d70c184a81ab0a060 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 31 Dec 2024 13:31:38 +0530 Subject: [PATCH] lint --- libs/filer/dbfs_client_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/filer/dbfs_client_test.go b/libs/filer/dbfs_client_test.go index a95a9e4bc..7bf840958 100644 --- a/libs/filer/dbfs_client_test.go +++ b/libs/filer/dbfs_client_test.go @@ -55,8 +55,9 @@ func TestDbfsClientForSmallFiles(t *testing.T) { // write file to DBFS fd, err := os.Open(localPath) - defer fd.Close() require.NoError(t, err) + defer fd.Close() + err = dbfsClient.Write(context.Background(), "hello.txt", fd) require.NoError(t, err) @@ -115,8 +116,9 @@ func TestDbfsClientForLargerFiles(t *testing.T) { // write file to DBFS fd, err := os.Open(localPath) - defer fd.Close() require.NoError(t, err) + defer fd.Close() + err = dbfsClient.Write(context.Background(), "hello.txt", fd) require.NoError(t, err)