mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-20 14:54:48 -07:00
Fix storage tests
* reformat sources #JR1356
This commit is contained in:
committed by
Lawrence, Rendall
parent
beb4736b86
commit
9122aefdd7
@@ -2,7 +2,6 @@ package torrentapproval
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"github.com/chihaya/chihaya/middleware"
|
||||
"github.com/chihaya/chihaya/storage/memory"
|
||||
@@ -83,10 +82,7 @@ func TestHandleAnnounce(t *testing.T) {
|
||||
req := &bittorrent.AnnounceRequest{}
|
||||
resp := &bittorrent.AnnounceResponse{}
|
||||
|
||||
hashbytes, err := hex.DecodeString(tt.ih)
|
||||
require.Nil(t, err)
|
||||
|
||||
hashinfo, err := bittorrent.NewInfoHash(hashbytes)
|
||||
hashinfo, err := bittorrent.NewInfoHash(tt.ih)
|
||||
require.Nil(t, err)
|
||||
|
||||
req.InfoHash = hashinfo
|
||||
|
||||
Reference in New Issue
Block a user