Migrate ordered NPC and location handoff tests to native execution
This commit is contained in:
@@ -26,11 +26,9 @@ func loadIntegrationConfigText(t *testing.T, content string) config.Config {
|
||||
return loadIntegrationConfig(t, path)
|
||||
}
|
||||
|
||||
func configFromYAML(content string) (config.Config, error) {
|
||||
directory, err := os.MkdirTemp("", "notarius-integration-config-")
|
||||
if err != nil {
|
||||
return config.Config{}, err
|
||||
}
|
||||
func configFromYAML(t *testing.T, content string) (config.Config, error) {
|
||||
t.Helper()
|
||||
directory := t.TempDir()
|
||||
path := filepath.Join(directory, "config.yml")
|
||||
if err := os.WriteFile(path, []byte(content), 0o600); err != nil {
|
||||
return config.Config{}, err
|
||||
|
||||
Reference in New Issue
Block a user