mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Fix tests for previous
This commit is contained in:
parent
6c383e279f
commit
2fde82528d
@ -76,7 +76,7 @@ func TestHandleFile(t *testing.T) {
|
||||
copyChan := make(chan copyBlocksState, 1) // Copy chan gets all blocks needed to copy in a wrapper struct
|
||||
pullChan := make(chan pullBlockState, 5) // Pull chan gets blocks one by one
|
||||
|
||||
p.handleFile(requiredFile, copyChan, pullChan)
|
||||
p.handleFile(requiredFile, copyChan, pullChan, nil)
|
||||
|
||||
// Receive the results
|
||||
toCopy := <-copyChan
|
||||
@ -143,7 +143,7 @@ func TestHandleFileWithTemp(t *testing.T) {
|
||||
copyChan := make(chan copyBlocksState, 1) // Copy chan gets all blocks needed to copy in a wrapper struct
|
||||
pullChan := make(chan pullBlockState, 2) // Pull chan gets blocks one by one
|
||||
|
||||
p.handleFile(requiredFile, copyChan, pullChan)
|
||||
p.handleFile(requiredFile, copyChan, pullChan, nil)
|
||||
|
||||
// Receive the results
|
||||
toCopy := <-copyChan
|
||||
|
Loading…
Reference in New Issue
Block a user