Skip to content

Commit cf4bdab

Browse files
committed
Note the new space name
1 parent 61fadb2 commit cf4bdab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/octopus_container_test_framework.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ func (o *OctopusContainerTest) ShowState(t *testing.T, terraformDir string) erro
658658

659659
// Act initialises Octopus and MSSQL
660660
func (o *OctopusContainerTest) Act(t *testing.T, container *OctopusContainer, terraformBaseDir string, terraformModuleDir string, populateVars []string) (string, error) {
661-
t.Log("POPULATING TEST SPACE")
661+
spaceName := strings.ReplaceAll(fmt.Sprint(uuid.New()), "-", "")[:20]
662+
t.Log("POPULATING TEST SPACE " + spaceName)
662663

663664
spacePopulateDir := filepath.Join(terraformBaseDir, "1-singlespace")
664665
dir, err := o.copyDir(spacePopulateDir)
@@ -674,7 +675,6 @@ func (o *OctopusContainerTest) Act(t *testing.T, container *OctopusContainer, te
674675
}
675676
}()
676677

677-
spaceName := strings.ReplaceAll(fmt.Sprint(uuid.New()), "-", "")[:20]
678678
err = o.InitialiseOctopus(t, container, dir, "", filepath.Join(terraformBaseDir, terraformModuleDir), spaceName, []string{}, []string{}, populateVars)
679679

680680
if err != nil {

0 commit comments

Comments
 (0)