Don't use global app for api / api4 tests (#7528)
* don't use global app for api / api4 tests * put sleep back. we're gonna have to do some goroutine wrangling * fix oauth test config assumptions * jobs package, i'm comin' for you next * app test fix * try increasing sleep a little
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
b84736e9b6
Коммит
9bc7af0c57
@@ -13,7 +13,7 @@ import (
|
||||
|
||||
func TestCreateJob(t *testing.T) {
|
||||
th := Setup().InitBasic().InitSystemAdmin()
|
||||
defer TearDown()
|
||||
defer th.TearDown()
|
||||
|
||||
job := &model.Job{
|
||||
Type: model.JOB_TYPE_DATA_RETENTION,
|
||||
@@ -40,7 +40,7 @@ func TestCreateJob(t *testing.T) {
|
||||
|
||||
func TestGetJob(t *testing.T) {
|
||||
th := Setup().InitBasic().InitSystemAdmin()
|
||||
defer TearDown()
|
||||
defer th.TearDown()
|
||||
|
||||
job := &model.Job{
|
||||
Id: model.NewId(),
|
||||
@@ -71,7 +71,7 @@ func TestGetJob(t *testing.T) {
|
||||
|
||||
func TestGetJobs(t *testing.T) {
|
||||
th := Setup().InitBasic().InitSystemAdmin()
|
||||
defer TearDown()
|
||||
defer th.TearDown()
|
||||
|
||||
jobType := model.NewId()
|
||||
|
||||
@@ -122,7 +122,7 @@ func TestGetJobs(t *testing.T) {
|
||||
|
||||
func TestGetJobsByType(t *testing.T) {
|
||||
th := Setup().InitBasic().InitSystemAdmin()
|
||||
defer TearDown()
|
||||
defer th.TearDown()
|
||||
|
||||
jobType := model.NewId()
|
||||
|
||||
@@ -186,7 +186,7 @@ func TestGetJobsByType(t *testing.T) {
|
||||
|
||||
func TestCancelJob(t *testing.T) {
|
||||
th := Setup().InitBasic().InitSystemAdmin()
|
||||
defer TearDown()
|
||||
defer th.TearDown()
|
||||
|
||||
jobs := []*model.Job{
|
||||
{
|
||||
|
||||
Ссылка в новой задаче
Block a user