Skip to content

Mock /proc/sys#870

Merged
mogren merged 1 commit intoaws:masterfrom
anguslees:mockprocsys
Mar 17, 2020
Merged

Mock /proc/sys#870
mogren merged 1 commit intoaws:masterfrom
anguslees:mockprocsys

Conversation

@anguslees
Copy link
Copy Markdown
Contributor

Add a mock for /proc/sys, to ease future testing.

@anguslees anguslees requested a review from mogren March 17, 2020 07:53
Copy link
Copy Markdown
Contributor

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

test failure on aarch64 build was the spurious cloudwatch unit test. all this looks good.


func (p *procSys) Set(key, value string) error {
return ioutil.WriteFile(p.path(key), []byte(value), 0644)
}
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.

much cleaner code. thanks! :)

Copy link
Copy Markdown
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

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

Nice! Thanks a lot @anguslees

@mogren mogren merged commit 71538ac into aws:master Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants