refactor: runner api

This commit is contained in:
debugtalk
2021-11-11 16:23:30 +08:00
parent 6bf56db88d
commit 6f2a38b5c7
15 changed files with 28 additions and 30 deletions

View File

@@ -77,7 +77,7 @@ func TestRunRequestRun(t *testing.T) {
config := &TConfig{
BaseURL: "https://postman-echo.com",
}
runner := NewRunner().SetDebug(true).WithTestingT(t)
runner := NewRunner(t).SetDebug(true)
if _, err := runner.runStep(stepGET, config); err != nil {
t.Fatalf("tStep.Run() error: %s", err)
}