mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +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
|
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
|
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
|
// Receive the results
|
||||||
toCopy := <-copyChan
|
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
|
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
|
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
|
// Receive the results
|
||||||
toCopy := <-copyChan
|
toCopy := <-copyChan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user