Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Feb 13, 2024
1 parent 27b886a commit 5020cc9
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions internal/minipipeline/normalize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,22 +231,13 @@ func TestNormalizeHTTPRequestResults(t *testing.T) {
T: 0.4,
}, {
Response: model.ArchivalHTTPResponse{
Body: model.ArchivalScrubbedMaybeBinaryString("1234567"),
BodyLength: 7,
Body: model.ArchivalScrubbedMaybeBinaryString("1234567"),
},
T0: 0.5,
T: 0.66,
}, {
Response: model.ArchivalHTTPResponse{
Body: model.ArchivalScrubbedMaybeBinaryString("1234567"),
BodyLength: 0,
},
T0: 0.6,
T: 0.77,
}, {
Response: model.ArchivalHTTPResponse{
Body: model.ArchivalScrubbedMaybeBinaryString(randx.Letters(1 << 19)),
BodyLength: 1 << 19,
Body: model.ArchivalScrubbedMaybeBinaryString(randx.Letters(1 << 19)),
},
T0: 0.7,
T: 0.88,
Expand All @@ -258,21 +249,13 @@ func TestNormalizeHTTPRequestResults(t *testing.T) {
},
{
Response: model.ArchivalHTTPResponse{
Body: model.ArchivalScrubbedMaybeBinaryString("1234567"),
BodyLength: 7,
},
},
{
Response: model.ArchivalHTTPResponse{
Body: model.ArchivalScrubbedMaybeBinaryString("1234567"),
BodyLength: 0,
Body: model.ArchivalScrubbedMaybeBinaryString("1234567"),
},
},
{
Response: model.ArchivalHTTPResponse{
Body: model.ArchivalScrubbedMaybeBinaryString(""),
BodyIsTruncated: true,
BodyLength: 1 << 19,
},
},
},
Expand Down

0 comments on commit 5020cc9

Please sign in to comment.