Skip to content

Commit

Permalink
Delete cop.db after running COP unit tests
Browse files Browse the repository at this point in the history
See https://jira.hyperledger.org/browse/FAB-1677
This simply removes the testdata/cop.db after running
the cli/client unit tests.  If we don't do this, the
unit tests fail (appropriately) on the next run.

Change-Id: I6a5b82d39fd0d83f7bbd3aa90d240fdbda2aa415
Signed-off-by: Keith Smith <[email protected]>
  • Loading branch information
Keith Smith committed Jan 16, 2017
1 parent 7161014 commit 88866f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func TestBogusCommand(t *testing.T) {
func TestLast(t *testing.T) {
// Cleanup
os.RemoveAll(dir)
os.Remove("../../testdata/cop.db")
}

func runServer() {
Expand Down

0 comments on commit 88866f1

Please sign in to comment.