Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Collect Applicable Constraints - Test Cleanup #1493

Merged
merged 3 commits into from
Dec 29, 2017

Conversation

JackyChiu
Copy link
Contributor

What does this do / why do we need it?

Made a testdata dir and test file for TestCollectConstaints.
Forgot to include this in #1480

What should your reviewer look out for in this PR?

Do you need help or clarification on anything?

Which issue(s) does this PR fix?

@darkowlzz
Copy link
Collaborator

It was fine, but this is good to have :)

`)
testdir := filepath.Join("src", "collect_constraints_test")
h.TempDir(testdir)
h.TempCopy(filepath.Join(testdir, "main.go"), "status/collect_constraints/main.go")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe use filepath.Join() here for "status/collect_constraints/main.go" to be safe?

@JackyChiu
Copy link
Contributor Author

haha yeah, I just felt a bit weird having the code as a string there

Copy link
Collaborator

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

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

LGTM!

@darkowlzz darkowlzz merged commit b19e8d4 into golang:master Dec 29, 2017
@JackyChiu JackyChiu deleted the applicable_constraints branch December 29, 2017 20:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants