From 47b33ec2c6cd31f1c712b2844428162fa2beae07 Mon Sep 17 00:00:00 2001 From: Tian Liao Date: Mon, 25 Nov 2024 18:49:51 +0800 Subject: [PATCH] use another port --- .github/workflows/action-ci.yml | 4 ++-- src/CalcViewModel/DataLoaders/DataLoaderMockConstants.h | 4 ++-- src/CalculatorUITestFramework/MockedCurrencyServer.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.yml index 45a6e12b..97fe3c9c 100644 --- a/.github/workflows/action-ci.yml +++ b/.github/workflows/action-ci.yml @@ -160,9 +160,9 @@ jobs: shell: powershell name: Install WindowsApplicationDriver - run: | - netsh http add urlacl url="http://localhost:80/calctesting/file" user=everyone + netsh http add urlacl url="http://localhost:4724/calctesting/file" user=everyone shell: powershell - name: enable local urls + name: Enable local urls - uses: ilammy/msvc-dev-cmd@v1 # this is a workaround because microsoft/vstest-action is broken. name: Setup dev tools - run: | diff --git a/src/CalcViewModel/DataLoaders/DataLoaderMockConstants.h b/src/CalcViewModel/DataLoaders/DataLoaderMockConstants.h index 1049a770..90588778 100644 --- a/src/CalcViewModel/DataLoaders/DataLoaderMockConstants.h +++ b/src/CalcViewModel/DataLoaders/DataLoaderMockConstants.h @@ -7,7 +7,7 @@ namespace CalculatorApp { namespace DataLoaders { - static constexpr auto sc_MetadataUriLocalizeFor = L"http://localhost/calctesting/file/?id=currency+static+data&localizeFor="; - static constexpr auto sc_RatiosUriRelativeTo = L"http://localhost/calctesting/file/?id=currency+converter+data&localCurrency="; + static constexpr auto sc_MetadataUriLocalizeFor = L"http://localhost:4724/calctesting/file/?id=currency+static+data&localizeFor="; + static constexpr auto sc_RatiosUriRelativeTo = L"http://localhost:4724/calctesting/file/?id=currency+converter+data&localCurrency="; } } diff --git a/src/CalculatorUITestFramework/MockedCurrencyServer.cs b/src/CalculatorUITestFramework/MockedCurrencyServer.cs index 0828c5bc..437e12a2 100644 --- a/src/CalculatorUITestFramework/MockedCurrencyServer.cs +++ b/src/CalculatorUITestFramework/MockedCurrencyServer.cs @@ -16,8 +16,8 @@ namespace CalculatorUITestFramework Prefixes = { // to trust below URL on your dev machine, run below command in cmd as admin - // netsh http add urlacl url="http://localhost:80/calctesting/file" user=everyone - "http://localhost/calctesting/file/", + // netsh http add urlacl url="http://localhost:4724/calctesting/file" user=everyone + "http://localhost:4724/calctesting/file/", } }; _listener.Start();