refactor: ITestCase, GetTestCase

This commit is contained in:
lilong.129
2024-08-19 21:37:32 +08:00
parent 14211b7c30
commit 50230adb54
3 changed files with 9 additions and 18 deletions
+1 -1
View File
@@ -680,7 +680,7 @@ func (s *StepRequest) PATCH(url string) *StepRequestWithOptionalArgs {
// CallRefCase calls a referenced testcase.
func (s *StepRequest) CallRefCase(tc ITestCase) *StepTestCaseWithOptionalArgs {
var err error
s.step.TestCase, err = tc.ToTestCase()
s.step.TestCase, err = tc.GetTestCase()
if err != nil {
log.Error().Err(err).Msg("failed to load testcase")
os.Exit(code.GetErrorCode(err))