Passing t to all tests setup functions (#13841)

* Passing t to all tests setup functions

* Fixing build
Этот коммит содержится в:
Jesús Espino
2020-02-10 19:31:41 +01:00
коммит произвёл GitHub
родитель 3b732fe257
Коммит 1d1ab03c38
73 изменённых файлов: 646 добавлений и 632 удалений

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

@@ -18,7 +18,7 @@ import (
)
func TestCreateEmoji(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -167,7 +167,7 @@ func TestCreateEmoji(t *testing.T) {
}
func TestGetEmojiList(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -236,7 +236,7 @@ func TestGetEmojiList(t *testing.T) {
}
func TestDeleteEmoji(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -397,7 +397,7 @@ func TestDeleteEmoji(t *testing.T) {
}
func TestGetEmoji(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -424,7 +424,7 @@ func TestGetEmoji(t *testing.T) {
}
func TestGetEmojiByName(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -451,7 +451,7 @@ func TestGetEmojiByName(t *testing.T) {
}
func TestGetEmojiImage(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -542,7 +542,7 @@ func TestGetEmojiImage(t *testing.T) {
}
func TestSearchEmoji(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
@@ -621,7 +621,7 @@ func TestSearchEmoji(t *testing.T) {
}
func TestAutocompleteEmoji(t *testing.T) {
th := Setup().InitBasic()
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client