[MM-13833] Configured unit tests to log through t.Log (#10272)

* Rerouted the unit test logs through t.Log

* resolving merge confilvts

* Update testing.go

* Update helper_test.go

* Added godocs for NewTestingLogger

* Added go docs for NewTestingLogger

* Resolving conflicts
Этот коммит содержится в:
Shreyansh Chouhan
2019-02-14 23:22:11 +05:30
коммит произвёл Jesse Hallam
родитель a6d0b73c0d
Коммит 39ceaa3e86
56 изменённых файлов: 316 добавлений и 264 удалений

Просмотреть файл

@@ -11,7 +11,7 @@ import (
)
func TestGetGroup(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
@@ -25,7 +25,7 @@ func TestGetGroup(t *testing.T) {
}
func TestGetGroupByRemoteID(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
@@ -39,7 +39,7 @@ func TestGetGroupByRemoteID(t *testing.T) {
}
func TestGetGroupsByType(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
th.CreateGroup()
th.CreateGroup()
@@ -55,7 +55,7 @@ func TestGetGroupsByType(t *testing.T) {
}
func TestCreateGroup(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
id := model.NewId()
@@ -76,7 +76,7 @@ func TestCreateGroup(t *testing.T) {
}
func TestUpdateGroup(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
group.DisplayName = model.NewId()
@@ -87,7 +87,7 @@ func TestUpdateGroup(t *testing.T) {
}
func TestDeleteGroup(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
@@ -101,7 +101,7 @@ func TestDeleteGroup(t *testing.T) {
}
func TestCreateOrRestoreGroupMember(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
@@ -115,7 +115,7 @@ func TestCreateOrRestoreGroupMember(t *testing.T) {
}
func TestDeleteGroupMember(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
groupMember, err := th.App.CreateOrRestoreGroupMember(group.Id, th.BasicUser.Id)
@@ -132,7 +132,7 @@ func TestDeleteGroupMember(t *testing.T) {
}
func TestCreateGroupSyncable(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
groupSyncable := &model.GroupSyncable{
@@ -153,7 +153,7 @@ func TestCreateGroupSyncable(t *testing.T) {
}
func TestGetGroupSyncable(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
groupSyncable := &model.GroupSyncable{
@@ -174,7 +174,7 @@ func TestGetGroupSyncable(t *testing.T) {
}
func TestGetGroupSyncables(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
@@ -198,7 +198,7 @@ func TestGetGroupSyncables(t *testing.T) {
}
func TestDeleteGroupSyncable(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
group := th.CreateGroup()
groupChannel := &model.GroupSyncable{