Skip to content

Commit

Permalink
chore: change case for testUploadTestContext
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari committed May 2, 2024
1 parent a24dde4 commit a200574
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions speedtest/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ func TestUploadTestContext(t *testing.T) {
if err != nil {
t.Errorf(err.Error())
}
if server.ULSpeed < idealSpeed*(1-delta) || idealSpeed*(1+delta) < server.ULSpeed {
t.Errorf("got unexpected server.ULSpeed '%v', expected between %v and %v", server.ULSpeed, idealSpeed*(1-delta), idealSpeed*(1+delta))
value := server.Context.Manager.GetAvgUploadRate()
if value < idealSpeed*(1-delta) || idealSpeed*(1+delta) < value {
t.Errorf("got unexpected server.ULSpeed '%v', expected between %v and %v", value, idealSpeed*(1-delta), idealSpeed*(1+delta))
}
if server.TestDuration.Upload == nil || *server.TestDuration.Upload != *server.TestDuration.Total {
t.Errorf("can't count test duration, server.TestDuration.Upload=%v, server.TestDuration.Total=%v", server.TestDuration.Upload, server.TestDuration.Total)
Expand Down

0 comments on commit a200574

Please sign in to comment.