Skip to content

Commit

Permalink
WIP: test: Create empty context if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
taratatach committed Nov 21, 2024
1 parent 8984792 commit 7d5792c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testutils/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ func WithManager(t *testing.T, inst *instance.Instance) (shouldRemoveUUID bool)
}

config, ok := inst.SettingsContext()
require.True(t, ok, "Could not enable test instance manager: could not fetch test instance settings context")
if !ok {
config = map[string]interface{}{}
}

managerURL, err := inst.ManagerURL(instance.ManagerBaseURL)
require.NoError(t, err, "Could not enable test instance manager: cloudery config is required")
Expand Down

0 comments on commit 7d5792c

Please sign in to comment.