mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
[Tests] Pass Port to the fake http context
This commit is contained in:
parent
3d85dace38
commit
57ab001c0c
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ namespace BTCPayServer.Tests
|
|||
public T GetController<T>(string userId = null, string storeId = null) where T : Controller
|
||||
{
|
||||
var context = new DefaultHttpContext();
|
||||
context.Request.Host = new HostString("127.0.0.1");
|
||||
context.Request.Host = new HostString("127.0.0.1", Port);
|
||||
context.Request.Scheme = "http";
|
||||
context.Request.Protocol = "http";
|
||||
if (userId != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue