From c95e5ace4df0bd25002e75cdc0dfceb2f1d28539 Mon Sep 17 00:00:00 2001 From: Matthew Clark <484943+mclark4386@users.noreply.github.com> Date: Fri, 3 Apr 2020 15:23:37 -0500 Subject: [PATCH 1/2] *may fix windows test --- genny/tokenauth/token_auth_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/genny/tokenauth/token_auth_test.go b/genny/tokenauth/token_auth_test.go index 6b614d9..0ec766d 100644 --- a/genny/tokenauth/token_auth_test.go +++ b/genny/tokenauth/token_auth_test.go @@ -2,6 +2,7 @@ package tokenauth import ( "context" + "path/filepath" "testing" "github.com/gobuffalo/genny/v2" @@ -13,7 +14,8 @@ func Test_New(t *testing.T) { run := genny.DryRunner(context.Background()) g := genny.New() - g.File(genny.NewFileS("actions/app.go", (appBefore))) + appPath := filepath.FromSlash("actions/app.go") + g.File(genny.NewFileS(appPath, (appBefore))) run.With(g) gg, err := New(&Options{}) From dbeec448db3b4ce47e9cc28a96ed23954b8d6b7d Mon Sep 17 00:00:00 2001 From: Matthew Clark <484943+mclark4386@users.noreply.github.com> Date: Fri, 3 Apr 2020 15:32:08 -0500 Subject: [PATCH 2/2] *try the same thing the actual code is doing... --- genny/tokenauth/token_auth_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genny/tokenauth/token_auth_test.go b/genny/tokenauth/token_auth_test.go index 0ec766d..ded89eb 100644 --- a/genny/tokenauth/token_auth_test.go +++ b/genny/tokenauth/token_auth_test.go @@ -14,7 +14,7 @@ func Test_New(t *testing.T) { run := genny.DryRunner(context.Background()) g := genny.New() - appPath := filepath.FromSlash("actions/app.go") + appPath := filepath.Join("actions", "app.go") g.File(genny.NewFileS(appPath, (appBefore))) run.With(g)