Skip to content

Commit

Permalink
chore: remove not use funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari committed Feb 18, 2023
1 parent 61302a7 commit 952d0fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions speedtest/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ var (
ulSizes = [...]int{100, 300, 500, 800, 1000, 1500, 2500, 3000, 3500, 4000} // kB
)

const testTime = time.Second * 10

// DownloadTest executes the test to measure download speed
func (s *Server) DownloadTest(savingMode bool) error {
return s.downloadTestContext(context.Background(), downloadRequest)
Expand Down
6 changes: 0 additions & 6 deletions speedtest/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package speedtest
import (
"context"
"fmt"
"net/http"
"runtime"
"testing"
"time"
Expand Down Expand Up @@ -61,11 +60,6 @@ func TestUploadTestContext(t *testing.T) {
}
}

func mockWarmUp(ctx context.Context, doer *http.Client, dlURL string) error {
time.Sleep(5000 * time.Millisecond)
return nil
}

func mockRequest(ctx context.Context, s *Server, w int) error {
fmt.Sprintln(w)
GlobalDataManager.SetRateCaptureFrequency(time.Millisecond * 100)
Expand Down

0 comments on commit 952d0fc

Please sign in to comment.