Skip to content

Commit

Permalink
Improve identity_handler tests: check that identity was not registered
Browse files Browse the repository at this point in the history
  • Loading branch information
donce committed Jan 10, 2018
1 parent 018975a commit 30d0397
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/mysterium_server/command_run/identity_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func Test_identityHandler_UseExisting(t *testing.T) {
id, err := handler.UseExisting("address")
assert.Equal(t, identityManager.FakeIdentity1, id)
assert.Nil(t, err)
assert.Equal(t, "", client.RegisteredIdentity.Address)
}

func Test_identityHandler_UseLast(t *testing.T) {
Expand All @@ -33,6 +34,7 @@ func Test_identityHandler_UseLast(t *testing.T) {
id, err := handler.UseLast()
assert.Equal(t, fakeIdentity, id)
assert.Nil(t, err)
assert.Equal(t, "", client.RegisteredIdentity.Address)
}

func Test_identityHandler_UseNew(t *testing.T) {
Expand Down

0 comments on commit 30d0397

Please sign in to comment.