Skip to content

Commit

Permalink
Normalize query workbench constant newlines (#1105) (#1107)
Browse files Browse the repository at this point in the history
* Normalize string newlines

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Revert "Normalize string newlines"

This reverts commit f25a99f.

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

* Fix which side is newline-normalized

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>

---------

Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
(cherry picked from commit 842fe0c)

Co-authored-by: Simeon Widdis <sawiddis@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and Swiddis authored Feb 26, 2024
1 parent e9fa679 commit a9f4d5f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ describe('Test and verify SQL downloads', () => {
'select * from accounts where balance > 49500 order by account_number',
},
}).then((response) => {
expect(response.body.data.resp).to.have.string(files[file]);
const data = files[file];
for (const line of data.split('\n')) {
expect(response.body.data.resp).to.have.string(line.trim());
}
});
});
});
Expand Down

0 comments on commit a9f4d5f

Please sign in to comment.