Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Jan 22, 2023
1 parent 98de9e8 commit 1cb61ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dropboxsyncutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func TestDiffFileListPreStrip(t *testing.T) {
}

func TestDiffFileListClever(t *testing.T) {
files := diffFileListClever([]string{"file1", "file2", "file3", "somefolder/file4"},
s := InitTest()
files := s.diffFileListClever([]string{"file1", "file2", "file3", "somefolder/file4"},
[]string{"file1", "file4", "file5"})

if len(files) != 1 && files[0] != "file5" {
Expand Down Expand Up @@ -116,6 +117,7 @@ func benchmarkDiffPreStrip(strlen int, b *testing.B) {

func benchmarkDiffClever(strlen int, b *testing.B) {
// Create two 1000 piece arrays
s := InitTest()
files := []string{}

for i := 0; i < strlen; i++ {
Expand All @@ -137,7 +139,7 @@ func benchmarkDiffClever(strlen int, b *testing.B) {
}

for n := 0; n < b.N; n++ {
diffFileListClever(shuf2, shuf2)
s.diffFileListClever(shuf2, shuf2)
}
}

Expand Down

0 comments on commit 1cb61ae

Please sign in to comment.