mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-07 05:41:27 +00:00
Migrate to SQLite EF provider for testing (#966)
* Migrate to Sqlite EF provider for testing * Fix failing unit test
This commit is contained in:
parent
25eaae1542
commit
c529dada35
9 changed files with 115 additions and 142 deletions
|
@ -71,7 +71,8 @@ public class DigestMiddlewareTests
|
|||
|
||||
const int expectedCode = 403;
|
||||
|
||||
Assert.Equal(expectedCode, context.Response.StatusCode);
|
||||
Assert.True(expectedCode == context.Response.StatusCode,
|
||||
"The digest middleware accepted the request when it shouldn't have (are you running this test in Debug mode?)");
|
||||
Assert.False(context.Response.Headers.TryGetValue("X-Digest-A", out _));
|
||||
Assert.False(context.Response.Headers.TryGetValue("X-Digest-B", out _));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue