mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-08 17:40:28 +00:00
fix test case
This commit is contained in:
1 parent
15a4b6ddc4
commit
ae1c605143
1 file changed
+2
-2
@@ -83,7 +83,7 @@ func TestBitfield_IsComplete(t *testing.T) {
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
b := &Bitfield{
|
||||
Message: tt.fields.Message,
|
||||
Message: &tt.fields.Message,
|
||||
payload: tt.fields.payload,
|
||||
}
|
||||
if got := b.IsComplete(tt.args.i); got != tt.want {
|
||||
@@ -151,7 +151,7 @@ func TestBitfield_Have(t *testing.T) {
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
b := &Bitfield{
|
||||
Message: tt.fields.Message,
|
||||
Message: &tt.fields.Message,
|
||||
payload: tt.fields.payload,
|
||||
}
|
||||
if got := b.Have(tt.args.pieces); !reflect.DeepEqual(got, tt.want) {
|
||||
|
||||
Reference in new issue
Block a user