2
0
mirror of synced 2025-02-22 21:58:24 +00:00
torrent/pending-requests_test.go
Matt Joiner 560b463983 Comment out pending requests tests and asserts
These need to be updated. BSI for pending requests removes an enormous amount of memory use for very large torrents.
2021-11-25 22:59:20 +11:00

13 lines
365 B
Go

package torrent
// // Ensure that cmp.Diff will detect errors as required.
// func TestPendingRequestsDiff(t *testing.T) {
// var a, b pendingRequests
// c := qt.New(t)
// diff := func() string { return cmp.Diff(a.m, b.m) }
// c.Check(diff(), qt.ContentEquals, "")
// a.m = []int{1, 3}
// b.m = []int{1, 2, 3}
// c.Check(diff(), qt.Not(qt.Equals), "")
// }