refactor: Run with config

This commit is contained in:
debugtalk
2021-09-22 20:12:33 +08:00
parent 4c2d7673fa
commit 9fb19da2ac
7 changed files with 13 additions and 10 deletions

View File

@@ -70,10 +70,11 @@ func TestRunRequestPostDataToStruct(t *testing.T) {
}
func TestRunRequestRun(t *testing.T) {
if err := stepGET.Run(); err != nil {
config := &TConfig{}
if err := stepGET.Run(config); err != nil {
t.Fatalf("tStep.Run() error: %s", err)
}
if err := stepPOSTData.Run(); err != nil {
if err := stepPOSTData.Run(config); err != nil {
t.Fatalf("tStepPOSTData.Run() error: %s", err)
}
}