Chore: Disable scopelint for tests (#25923)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-30 11:05:47 +02:00
committed by GitHub
parent 02cd1a441f
commit 3651a8e976
26 changed files with 10 additions and 41 deletions
-2
View File
@@ -42,7 +42,6 @@ func TestGetHomeDashboard(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
dash := dtos.DashboardFullWithMeta{}
dash.Meta.IsHome = true
@@ -802,7 +801,6 @@ func TestDashboardApiEndpoint(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
mock := &dashboards.FakeDashboardService{
SaveDashboardError: tc.SaveError,
}
-2
View File
@@ -62,7 +62,6 @@ func TestFoldersApiEndpoint(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
mock := &fakeFolderService{
CreateFolderError: tc.Error,
}
@@ -120,7 +119,6 @@ func TestFoldersApiEndpoint(t *testing.T) {
}
for _, tc := range testCases {
tc := tc
mock := &fakeFolderService{
UpdateFolderError: tc.Error,
}
-2
View File
@@ -252,7 +252,6 @@ func TestLoginViewRedirect(t *testing.T) {
}
for _, c := range redirectCases {
c := c
hs.Cfg.AppUrl = c.appURL
hs.Cfg.AppSubUrl = c.appSubURL
t.Run(c.desc, func(t *testing.T) {
@@ -421,7 +420,6 @@ func TestLoginPostRedirect(t *testing.T) {
}
for _, c := range redirectCases {
c := c
hs.Cfg.AppUrl = c.appURL
hs.Cfg.AppSubUrl = c.appSubURL
t.Run(c.desc, func(t *testing.T) {
@@ -189,7 +189,6 @@ func TestAccessToken(t *testing.T) {
},
}
for _, testCase := range testCases {
testCase := testCase
Convey(testCase.desc, func() {
clearTokenCache()
// reset the httphandler counter
-1
View File
@@ -617,7 +617,6 @@ func TestNewDataSourceProxy_MSSQL(t *testing.T) {
},
}
for _, tc := range tcs {
tc := tc
t.Run(tc.description, func(t *testing.T) {
cfg := setting.Cfg{}
plugin := plugins.DataSourcePlugin{}