From b0e7d4d5dff71c03db438557eaa3e09d0cc3591d Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 3 Feb 2022 08:45:50 -0800 Subject: [PATCH] fix tests --- src/utils/utils_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/utils_test.go b/src/utils/utils_test.go index 50e025e0..738bdb31 100644 --- a/src/utils/utils_test.go +++ b/src/utils/utils_test.go @@ -9,10 +9,11 @@ import ( "strings" "testing" - "github.com/schollz/croc/v9/src/models" "github.com/stretchr/testify/assert" ) +const TCP_BUFFER_SIZE = 1024 * 64 + var bigFileSize = 75000000 func bigFile() { @@ -62,7 +63,7 @@ func BenchmarkMissingChunks(b *testing.B) { bigFile() b.ResetTimer() for i := 0; i < b.N; i++ { - MissingChunks("bigfile.test", int64(bigFileSize), models.TCP_BUFFER_SIZE/2) + MissingChunks("bigfile.test", int64(bigFileSize), TCP_BUFFER_SIZE/2) } }