[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
This commit is contained in:
Shreyansh Chouhan
2019-02-14 23:22:11 +05:30
committed by Jesse Hallam
parent a6d0b73c0d
commit 39ceaa3e86
56 changed files with 316 additions and 264 deletions

View File

@@ -13,7 +13,7 @@ import (
)
func TestJoinCommandNoChannel(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
if testing.Short() {
@@ -33,7 +33,7 @@ func TestJoinCommandNoChannel(t *testing.T) {
}
func TestJoinCommandForExistingChannel(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
if testing.Short() {
@@ -62,7 +62,7 @@ func TestJoinCommandForExistingChannel(t *testing.T) {
}
func TestJoinCommandWithTilde(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
if testing.Short() {
@@ -91,7 +91,7 @@ func TestJoinCommandWithTilde(t *testing.T) {
}
func TestJoinCommandPermissions(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
channel2, _ := th.App.CreateChannel(&model.Channel{