This commit is contained in:
Shreyas Goenka 2024-12-31 13:31:38 +05:30
parent cf51636faa
commit be62ead7be
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 4 additions and 2 deletions

View File

@ -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)