fix unit tests

This commit is contained in:
Tejal Desai 2020-03-25 10:09:33 -07:00
parent 2ea28fc7f5
commit 9567b755dd
1 changed files with 3 additions and 7 deletions

View File

@ -400,14 +400,10 @@ func Test_filesToSave(t *testing.T) {
if err != nil {
t.Errorf("got err: %s", err)
}
want := []string{}
for _, w := range tt.want {
want = append(want, filepath.Join(tmpDir, w))
}
sort.Strings(want)
sort.Strings(tt.want)
sort.Strings(got)
if !reflect.DeepEqual(got, want) {
t.Errorf("filesToSave() = %v, want %v", got, want)
if !reflect.DeepEqual(got, tt.want) {
t.Errorf("filesToSave() = %v, want %v", got, tt.want)
}
})
}