mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-20 22:33:10 +00:00
fix failing test in torrentdownloader
This commit is contained in:
parent
6000ae5e07
commit
e3fd2fada8
@ -218,7 +218,6 @@ proc getNext*(
|
||||
except CancelledError as e:
|
||||
trace "Getting next block from downloader cancelled"
|
||||
raise e
|
||||
# return success((-1, newSeq[byte]()))
|
||||
except CatchableError as e:
|
||||
warn "Could not get block from local store", error = e.msg
|
||||
return failure("Could not get block from local store: " & e.msg)
|
||||
|
||||
@ -235,6 +235,5 @@ asyncchecksuite "Torrent Downloader":
|
||||
|
||||
assert dataFut.finished
|
||||
|
||||
let (blockIndex, data) = dataFut.read.tryGet()
|
||||
check blockIndex == -1
|
||||
check data.len == 0
|
||||
expect CancelledError:
|
||||
discard await dataFut
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user