From a3c99028b2a2f2ab7971633aad1a01eef1160899 Mon Sep 17 00:00:00 2001 From: Chris Ross Date: Wed, 12 Dec 2018 17:14:46 -0800 Subject: [PATCH] Fix HttpSys Caching_SendFileWithFullContentLength_Cached test (#4630) --- .../HttpSys/test/FunctionalTests/ResponseCachingTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Servers/HttpSys/test/FunctionalTests/ResponseCachingTests.cs b/src/Servers/HttpSys/test/FunctionalTests/ResponseCachingTests.cs index acac2989fd..ce226cc20e 100644 --- a/src/Servers/HttpSys/test/FunctionalTests/ResponseCachingTests.cs +++ b/src/Servers/HttpSys/test/FunctionalTests/ResponseCachingTests.cs @@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Server.HttpSys.FunctionalTests public ResponseCachingTests() { - _absoluteFilePath = Directory.GetFiles(Directory.GetCurrentDirectory()).First(); + _absoluteFilePath = Path.Combine(Directory.GetCurrentDirectory(), "Microsoft.AspNetCore.Server.HttpSys.dll"); _fileLength = new FileInfo(_absoluteFilePath).Length; }