Skip to content

Commit

Permalink
reduced size for netcorestandard2.1 compression size is larger.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Schmaltz committed Oct 15, 2023
1 parent b16f758 commit ec25d19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3617,7 +3617,11 @@ public static TheoryData<JWEDecompressionTheoryData> JweDecompressSizeTheoryData

TheoryData<JWEDecompressionTheoryData> theoryData = new TheoryData<JWEDecompressionTheoryData>();

#if NETCOREAPP2_1
string payload = System.Text.Json.JsonSerializer.Serialize(new { U = new string('U', 20_000_000), UU = new string('U', 15_000_000) });
#else
string payload = System.Text.Json.JsonSerializer.Serialize(new { U = new string('U', 100_000_000), UU = new string('U', 40_000_000) });
#endif
string token = jwth.CreateToken(payload, encryptingCredentials, "DEF");
theoryData.Add(new JWEDecompressionTheoryData
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,11 @@ public static TheoryData<JWEDecompressionTheoryData> JweDecompressSizeTheoryData

TheoryData<JWEDecompressionTheoryData> theoryData = new TheoryData<JWEDecompressionTheoryData>();

#if NETCOREAPP2_1
string payload = System.Text.Json.JsonSerializer.Serialize(new { U = new string('U', 20_000_000), UU = new string('U', 15_000_000) });
#else
string payload = System.Text.Json.JsonSerializer.Serialize(new { U = new string('U', 100_000_000), UU = new string('U', 40_000_000) });
#endif
string token = jwth.CreateToken(payload, encryptingCredentials, "DEF");
theoryData.Add(new JWEDecompressionTheoryData
{
Expand Down

0 comments on commit ec25d19

Please sign in to comment.