Skip to content

Commit

Permalink
Fix error handling when deleting data stream in system tests (#1948)
Browse files Browse the repository at this point in the history
Error returning was being ignored, and error handled was a different one.
  • Loading branch information
jsoriano authored Jul 4, 2024
1 parent be689a0 commit 52c619c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/testrunner/runners/system/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ func (r *tester) prepareScenario(ctx context.Context, config *testConfig, svcInf

r.cleanTestScenarioHandler = func(ctx context.Context) error {
logger.Debugf("Deleting data stream for testing %s", scenario.dataStream)
r.deleteDataStream(ctx, scenario.dataStream)
err := r.deleteDataStream(ctx, scenario.dataStream)
if err != nil {
return fmt.Errorf("failed to delete data stream %s: %w", scenario.dataStream, err)
}
Expand Down

0 comments on commit 52c619c

Please sign in to comment.