Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove unused code
  • Loading branch information
jsoriano committed Apr 21, 2025
commit c3fdd1e072203a0407bd2863475eafbab96105a9
21 changes: 0 additions & 21 deletions internal/testrunner/runners/system/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,27 +945,6 @@ type scenarioTest struct {
startTestTime time.Time
}

type pipelineTrace []string

func (p *pipelineTrace) UnmarshalJSON(d []byte) error {
var alias interface{}
if err := json.Unmarshal(d, &alias); err != nil {
return err
}
switch v := alias.(type) {
case string:
*p = append(*p, v)
case []any:
// assume it is going to be an array of strings
for _, value := range v {
*p = append(*p, fmt.Sprint(value))
}
default:
return fmt.Errorf("unexpected type found for pipeline_trace: %T", v)
}
return nil
}

func (r *tester) deleteDataStream(ctx context.Context, dataStream string) error {
resp, err := r.esAPI.Indices.DeleteDataStream([]string{dataStream},
r.esAPI.Indices.DeleteDataStream.WithContext(ctx),
Expand Down