mirror of https://github.com/databricks/cli.git
lint
This commit is contained in:
parent
cf51636faa
commit
be62ead7be
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue