refactor: runner api

This commit is contained in:
debugtalk
2021-11-11 16:23:30 +08:00
parent c16fad8905
commit 00284ff610
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)
}