fix: torrent udp tracker panic (#138)

This commit is contained in:
Li Wei authored and GitHub committed 2023-07-05 21:32:50 +08:00
1 parent 5968d3c14a
commit 5bafb40599
3 files changed
+151 -98

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ func TestPauseAllAndContinueALLTasks(t *testing.T) {
createAndPause := func() {
taskId := httpRequestCheckOk[string](http.MethodPost, "/api/v1/tasks", createReq)
httpRequestCheckOk[*download.Task](http.MethodGet, "/api/v1/tasks/"+taskId, nil)
httpRequestCheckOk[*download.Task](http.MethodPut, "/api/v1/tasks/"+taskId+"/pause", nil)
}
total := cfg.MaxRunning + 2