From e9b0afb337ec152a79235449a4baec9322b6c96c Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Fri, 3 Jan 2025 00:03:16 +0530 Subject: [PATCH] - --- libs/filer/dbfs_client_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/filer/dbfs_client_test.go b/libs/filer/dbfs_client_test.go index 506bff2dd..df962e5a3 100644 --- a/libs/filer/dbfs_client_test.go +++ b/libs/filer/dbfs_client_test.go @@ -91,8 +91,7 @@ func TestDbfsClientForLargerFiles(t *testing.T) { // write file to local disk tmp := t.TempDir() localPath := filepath.Join(tmp, "hello.txt") - err := os.WriteFile(localPath, []byte("hello world"), 0o644) - require.NoError(t, err) + testutil.WriteFile(t, localPath, "hello world") // Modify the max file size to 1 byte to simulate // a large file that needs to be uploaded in chunks.