Skip to content

Commit

Permalink
fix moved relative paths to testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Oct 7, 2024
1 parent f833655 commit d7ab5bd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func TestGoBuildClearsBuildDir(t *testing.T) {
file := "./another/.ftl/test-clear-build.tmp"
in.Run(t,
in.WithTestDataDir("testdata"),
in.WithTestDataDir("../testdata"),
in.CopyModule("another"),
in.Build("another"),
in.WriteFile(file, []byte{1}),
Expand All @@ -26,7 +26,7 @@ func TestGoBuildClearsBuildDir(t *testing.T) {

func TestExternalType(t *testing.T) {
in.Run(t,
in.WithTestDataDir("testdata"),
in.WithTestDataDir("../testdata"),
in.CopyModule("external"),
in.ExpectError(in.Build("external"),
`unsupported type "time.Month" for field "Month"`,
Expand All @@ -43,7 +43,7 @@ func TestGeneratedTypeRegistry(t *testing.T) {
file := "other/.ftl/go/main/main.go"

in.Run(t,
in.WithTestDataDir("testdata"),
in.WithTestDataDir("../testdata"),
// Deploy dependency
in.CopyModule("another"),
in.Deploy("another"),
Expand Down

0 comments on commit d7ab5bd

Please sign in to comment.