middleware: Make scenario test functions take a testing.T argument (#29564)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-12-04 11:09:32 +01:00
committed by GitHub
parent 55d536c6bc
commit 4e0ad50102
8 changed files with 74 additions and 64 deletions
+1 -1
View File
@@ -109,5 +109,5 @@ func (sc *scenarioContext) exec() {
}
}
type scenarioFunc func(c *scenarioContext)
type scenarioFunc func(t *testing.T, c *scenarioContext)
type handlerFunc func(c *models.ReqContext)