Skip to content

Commit

Permalink
[js/web] update test condition for '--force-localhost' (#20450)
Browse files Browse the repository at this point in the history
### Description

Fixes the NPM packaging pipeline failure.
  • Loading branch information
fs-eire authored Apr 24, 2024
1 parent 9cc5bad commit a5182a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/web/script/test-runner-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ async function main() {
if (args.noSandbox) {
karmaArgs.push('--no-sandbox');
}
if (webgpu || webnn) {

// When using BrowserStack with Safari, we need NOT to use 'localhost' as the hostname.
if (!(browser.startsWith('BS_') && browser.includes('Safari'))) {
karmaArgs.push('--force-localhost');
}
if (webgpu) {
Expand Down

0 comments on commit a5182a2

Please sign in to comment.