Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
gps: move digest fixtures into proper testdata dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Oct 7, 2017
1 parent 7fba0bb commit b7e513c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gps/pkgtree/digest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func getTestdataVerifyRoot(t *testing.T) string {
if err != nil {
t.Fatal(err)
}
return filepath.Join(filepath.Dir(cwd), "testdata_digest")
return filepath.Join(filepath.Dir(cwd), "_testdata/digest")
}

func TestDigestFromDirectoryBailsUnlessDirectory(t *testing.T) {
Expand Down Expand Up @@ -128,7 +128,7 @@ func TestDigestFromDirectory(t *testing.T) {
})

t.Run("RelativePrefix", func(t *testing.T) {
prefix := "../testdata_digest"
prefix := "../_testdata/digest"
got, err := DigestFromDirectory(filepath.Join(prefix, relativePathname))
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit b7e513c

Please sign in to comment.