From 2fde82528d17149f26e9ee0c707439d6215a5c1f Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 6 Oct 2014 10:19:27 +0200 Subject: [PATCH] Fix tests for previous --- internal/model/puller_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/puller_test.go b/internal/model/puller_test.go index fe08f324c..8c8a13fbf 100644 --- a/internal/model/puller_test.go +++ b/internal/model/puller_test.go @@ -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