Skip to content

Commit

Permalink
fix FAB-17153, change temp folder mode to remove
Browse files Browse the repository at this point in the history
Signed-off-by: baidang201 <jinrishouji@sina.com>
  • Loading branch information
baidang201 authored and ale-linux committed Dec 1, 2019
1 parent 0264eb6 commit 4947729
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/chaincode/platforms/util/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ func Test_WriteFolderToTarPackageFailure4(t *testing.T) {
err = WriteFolderToTarPackage(tw, tempDir, []string{}, nil, nil)
assert.Error(t, err, "Should have received error writing folder to package")
assert.Contains(t, err.Error(), "permission denied")

err = os.Chmod(tempDir, 0700)
require.NoError(t, err)
}

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

0 comments on commit 4947729

Please sign in to comment.