Skip to content

Commit 4947729

Browse files
baidang201ale-linux
authored andcommitted
fix FAB-17153, change temp folder mode to remove
Signed-off-by: baidang201 <[email protected]>
1 parent 0264eb6 commit 4947729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/chaincode/platforms/util/writer_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ func Test_WriteFolderToTarPackageFailure4(t *testing.T) {
219219
err = WriteFolderToTarPackage(tw, tempDir, []string{}, nil, nil)
220220
assert.Error(t, err, "Should have received error writing folder to package")
221221
assert.Contains(t, err.Error(), "permission denied")
222+
223+
err = os.Chmod(tempDir, 0700)
224+
require.NoError(t, err)
222225
}
223226

224227
func createTestTar(t *testing.T, srcPath string, excludeDir []string, includeFileTypeMap map[string]bool, excludeFileTypeMap map[string]bool) []byte {

0 commit comments

Comments
 (0)