Skip to content

Commit 81c7016

Browse files
committed
multi-part tests
1 parent 896c7a3 commit 81c7016

3 files changed

Lines changed: 935 additions & 0 deletions

File tree

go.mod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ require (
2222
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
2323
github.com/spf13/cobra v1.6.1
2424
github.com/spf13/viper v1.15.0
25+
github.com/stretchr/testify v1.9.0
2526
golang.org/x/exp v0.0.0-20240716160929-1d5bc16f04a8
2627
golang.org/x/sync v0.7.0
2728
)
2829

30+
require (
31+
github.com/davecgh/go-spew v1.1.1 // indirect
32+
github.com/pmezard/go-difflib v1.0.0 // indirect
33+
)
34+
2935
require (
3036
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
3137
github.com/atotto/clipboard v0.1.4 // indirect

internal/turso/tursoServer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ func (i *TursoServerClient) uploadChunks(chunkSize int64, file io.Reader, totalS
223223
uploadedBytes += currentChunkSize
224224
progressPct := int(float64(uploadedBytes) / float64(totalSize) * 100)
225225
elapsedTime := time.Since(startTime)
226+
//TODO update progress more smoothly than after every chunk
226227
onUploadProgress(progressPct, uploadedBytes, totalSize, elapsedTime, false)
227228

228229
chunkID++

0 commit comments

Comments
 (0)