mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[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:
committed by
Jesse Hallam
parent
a6d0b73c0d
commit
39ceaa3e86
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user