Skip to content

Commit

Permalink
gorond
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Jun 27, 2024
1 parent dcfb61f commit abf0c2e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
6 changes: 4 additions & 2 deletions issue-949_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package torrent

import (
"github.com/anacrolix/torrent/metainfo"
qt "github.com/frankban/quicktest"
"testing"

qt "github.com/frankban/quicktest"

"github.com/anacrolix/torrent/metainfo"
)

func TestIssue949LastPieceZeroPadding(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion storage/piece-completion.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package storage

import (
"github.com/anacrolix/log"
"os"

"github.com/anacrolix/log"

"github.com/anacrolix/torrent/metainfo"
)

Expand Down
6 changes: 4 additions & 2 deletions tests/issue-952/issue-952_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package issue_952

import (
"testing"

qt "github.com/frankban/quicktest"

"github.com/anacrolix/torrent/bencode"
"github.com/anacrolix/torrent/metainfo"
"github.com/anacrolix/torrent/types/infohash"
qt "github.com/frankban/quicktest"
"testing"
)

type scrapeResponse struct {
Expand Down
16 changes: 9 additions & 7 deletions tests/peers-bootstrapping/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ package main
import (
"crypto/rand"
"fmt"
"io"
"net/http"
"os"
"path/filepath"
"time"

_ "github.com/anacrolix/envpprof"
"github.com/anacrolix/log"
"github.com/anacrolix/sync"
"github.com/dustin/go-humanize"
"golang.org/x/exp/slog"

"github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/bencode"
"github.com/anacrolix/torrent/metainfo"
"github.com/dustin/go-humanize"
"golang.org/x/exp/slog"
"io"
"net/http"
"os"
"path/filepath"
"time"
)

func assertNil(x any) {
Expand Down

0 comments on commit abf0c2e

Please sign in to comment.