Skip to content

Commit

Permalink
[FAB-7008] Fix compilation error
Browse files Browse the repository at this point in the history
Fix the compilation error in the
cmd/fabric-ca-client/main_test.go. The error was caused
by the changes introduced in the change sets:
https://gerrit.hyperledger.org/r/c/14741/
https://gerrit.hyperledger.org/r/c/15025/
One function used by one change set that was renamed by other
change set.

Change-Id: I521f815700af7f36ea3eb4cbfd1796b07fd05dce
Signed-off-by: Anil Ambati <[email protected]>
  • Loading branch information
Anil Ambati committed Nov 16, 2017
1 parent 52fc1f6 commit e554d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/fabric-ca-client/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,9 @@ func testRegisterCommandLine(t *testing.T, srv *lib.Server) {
err = RunMain([]string{cmdName, "register", "-d", "--id.name", userName,
"--id.affiliation", "hyperledger.org1"})
assert.NoError(t, err, "Failed to register identity "+userName)
user, err = db.GetUserInfo(userName)
user, err = db.GetUser(userName, nil)
assert.NoError(t, err)
assert.Equal(t, "user", user.Type, "Identity type for '%s' should have been 'user'", userName)
assert.Equal(t, "user", user.GetType(), "Identity type for '%s' should have been 'user'", userName)

os.Remove(defYaml) // Delete default config file

Expand Down

0 comments on commit e554d99

Please sign in to comment.