Skip to content

Commit

Permalink
fix: always add responses from test run to history (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnWeber committed Aug 21, 2024
1 parent a668279 commit edbefa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- copy header for aws signing (AnWeber/httpyac#769)
- add skip test result if `@ref` is skipped (#297)
- support Test Runner in VScode Environemnts without open Workspace (#320)
- always add responses from test run to history (#317)

## [6.15.0] ( 2024-08-04)
### Features
Expand Down
4 changes: 2 additions & 2 deletions src/provider/test/testRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export class TestRunner {
);
context.logResponse = async (response, httpRegion) => {
testRunContextLogResponse(response, httpRegion);
if (response && hasOnlyOneTestItem) {
await this.responseStore.add(response, httpRegion);
if (response) {
await this.responseStore.add(response, httpRegion, hasOnlyOneTestItem);
}
};
if (hasOnlyOneTestItem) {
Expand Down

0 comments on commit edbefa8

Please sign in to comment.