Skip to content

Commit

Permalink
metadata: fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
  • Loading branch information
GiedriusS committed Aug 18, 2020
1 parent 9eb1c6f commit 9162af6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/block/metadata/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestHashSmoke(t *testing.T) {
_, err = f2.Write([]byte("test"))
testutil.Ok(t, err)

hashes, err = GetHashDir(dir, SHA256Kind, filepath.Base(f.Name()), strings.TrimPrefix(dir2, dir)+filepath.Base(f2.Name()))
hashes, err = GetHashDir(dir, SHA256Kind, filepath.Base(f.Name()), filepath.Join(strings.TrimPrefix(dir2, dir), filepath.Base(f2.Name())))
testutil.Ok(t, err)
testutil.Equals(t, map[string]ObjectHash{}, hashes)
}

0 comments on commit 9162af6

Please sign in to comment.