From 33ce0292fba15b96bfa94d5c1c809fd6caa999de Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Wed, 27 Nov 2024 15:11:16 +0100 Subject: [PATCH] correct the test --- bundle/config/mutator/translate_paths_apps_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bundle/config/mutator/translate_paths_apps_test.go b/bundle/config/mutator/translate_paths_apps_test.go index 7ca0412d..5692934b 100644 --- a/bundle/config/mutator/translate_paths_apps_test.go +++ b/bundle/config/mutator/translate_paths_apps_test.go @@ -25,6 +25,9 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) { SyncRootPath: dir, SyncRoot: vfs.MustNew(dir), Config: config.Root{ + Workspace: config.Workspace{ + FilePath: "/bundle/files", + }, Resources: config.Resources{ Apps: map[string]*resources.App{ "app": { @@ -48,7 +51,7 @@ func TestTranslatePathsApps_FilePathRelativeSubDirectory(t *testing.T) { // Assert that the file path for the app has been converted to its local absolute path. assert.Equal( t, - filepath.Join("src", "app"), + "/bundle/files/src/app", b.Config.Resources.Apps["app"].SourceCodePath, ) }