Skip to content

Extend agent template tests to also validate that updated templates get re-rendered#9097

Merged
ncabatoff merged 1 commit into
masterfrom
improve-agent-template-test
May 29, 2020
Merged

Extend agent template tests to also validate that updated templates get re-rendered#9097
ncabatoff merged 1 commit into
masterfrom
improve-agent-template-test

Conversation

@ncabatoff
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@catsby catsby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 one question but not a blocker, just curious

Comment thread command/agent_test.go
// make some template files
var templatePaths []string
for i := 0; i < tc.templateCount; i++ {
path := makeTempFile(t, fmt.Sprintf("render_%d", i), templateContents(i))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to not use makeTempFile here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I was debugging it was easier to have the inputs and outputs in the same directory and using the same basename.

@ncabatoff ncabatoff merged commit 60c7e22 into master May 29, 2020
@ncabatoff ncabatoff deleted the improve-agent-template-test branch May 29, 2020 17:37
@pbernal pbernal added this to the 1.5 milestone Jun 22, 2020
andaley pushed a commit that referenced this pull request Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants