From 67b935188b81a0a64e96f06b73ccb63c7f4224b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 15 Jan 2015 10:52:22 +0100 Subject: [PATCH] Fixed failing unit test --- pkg/stores/sqlstore/accounts_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/stores/sqlstore/accounts_test.go b/pkg/stores/sqlstore/accounts_test.go index 1b1f76ad2f6..50341c6bbd4 100644 --- a/pkg/stores/sqlstore/accounts_test.go +++ b/pkg/stores/sqlstore/accounts_test.go @@ -34,9 +34,9 @@ func TestAccountDataAccess(t *testing.T) { Convey("Can add collaborator", func() { cmd := m.AddCollaboratorCommand{ - AccountId: ac2.Id, - ForAccountId: ac1.Id, - Role: m.ROLE_READ_WRITE, + AccountId: ac1.Id, + CollaboratorId: ac2.Id, + Role: m.ROLE_READ_WRITE, } err := AddCollaborator(&cmd) @@ -49,7 +49,7 @@ func TestAccountDataAccess(t *testing.T) { err = GetAccountInfo(&query) 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].Email, ShouldEqual, "ac2@test.com") })