Skip to content

Commit

Permalink
fix for FAB-17156, clean up main_test folder by defer
Browse files Browse the repository at this point in the history
Signed-off-by: SamYuan <yy19902439@126.com>
  • Loading branch information
SamYuan1990 authored and ale-linux committed Dec 2, 2019
1 parent 4947729 commit 29dd911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions orderer/common/server/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ func TestInitializeBootstrapChannel(t *testing.T) {
defer os.Remove(genesisFile)

fileLedgerLocation, _ := ioutil.TempDir("", "main_test-")
defer os.RemoveAll(fileLedgerLocation)

ledgerFactory, _, err := createLedgerFactory(
&localconfig.TopLevel{
FileLedger: localconfig.FileLedger{
Expand Down

0 comments on commit 29dd911

Please sign in to comment.