mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed failing unit test
This commit is contained in:
parent
0dfd09ed0e
commit
67b935188b
@ -34,9 +34,9 @@ func TestAccountDataAccess(t *testing.T) {
|
|||||||
|
|
||||||
Convey("Can add collaborator", func() {
|
Convey("Can add collaborator", func() {
|
||||||
cmd := m.AddCollaboratorCommand{
|
cmd := m.AddCollaboratorCommand{
|
||||||
AccountId: ac2.Id,
|
AccountId: ac1.Id,
|
||||||
ForAccountId: ac1.Id,
|
CollaboratorId: ac2.Id,
|
||||||
Role: m.ROLE_READ_WRITE,
|
Role: m.ROLE_READ_WRITE,
|
||||||
}
|
}
|
||||||
|
|
||||||
err := AddCollaborator(&cmd)
|
err := AddCollaborator(&cmd)
|
||||||
@ -49,7 +49,7 @@ func TestAccountDataAccess(t *testing.T) {
|
|||||||
err = GetAccountInfo(&query)
|
err = GetAccountInfo(&query)
|
||||||
|
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
So(query.Result.Collaborators[0].AccountId, ShouldEqual, ac2.Id)
|
So(query.Result.Collaborators[0].CollaboratorId, ShouldEqual, ac2.Id)
|
||||||
So(query.Result.Collaborators[0].Role, ShouldEqual, m.ROLE_READ_WRITE)
|
So(query.Result.Collaborators[0].Role, ShouldEqual, m.ROLE_READ_WRITE)
|
||||||
So(query.Result.Collaborators[0].Email, ShouldEqual, "ac2@test.com")
|
So(query.Result.Collaborators[0].Email, ShouldEqual, "ac2@test.com")
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user