From a6936982794bf84da01bcea26d618a34708a7ea7 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 9 Aug 2015 10:00:28 +0200 Subject: [PATCH] Mend tests --- common_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common_test.go b/common_test.go index 706a3b877..8f1028078 100644 --- a/common_test.go +++ b/common_test.go @@ -31,11 +31,11 @@ func (t *TestModel) Index(deviceID DeviceID, folder string, files []FileInfo, fl func (t *TestModel) IndexUpdate(deviceID DeviceID, folder string, files []FileInfo, flags uint32, options []Option) { } -func (t *TestModel) Request(deviceID DeviceID, folder, name string, offset int64, size int, hash []byte, flags uint32, options []Option, buf []byte) error { +func (t *TestModel) Request(deviceID DeviceID, folder, name string, offset int64, hash []byte, flags uint32, options []Option, buf []byte) error { t.folder = folder t.name = name t.offset = offset - t.size = size + t.size = len(buf) t.hash = hash t.flags = flags t.options = options