-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added unit test to ensure watches are not re-triggered on consul reload #7449
Added unit test to ensure watches are not re-triggered on consul reload #7449
Conversation
6bf7a7c
to
3560258
Compare
agent/agent_endpoint_test.go
Outdated
tmpFileRaw, err := ioutil.TempFile("", "rexec") | ||
if err != nil { | ||
t.Fatalf("failed to make tmp file: %#v", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defer os.Remove(tmpFileRaw)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if does no take a file descriptor, only a path: https://golang.org/pkg/os/#Remove, so I think I am correct
agent/agent_endpoint_test.go
Outdated
dc1 := "dc1" | ||
checkInterval := "1s" // This value ensure we could detect as transient critical state | ||
tmpFileRaw, err := ioutil.TempFile("", "rexec") | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opt: these can be require.NoError(t, err)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DONE
ec77f48
to
892e23b
Compare
c33b3cc
to
6986079
Compare
damned unstable integration tests |
dbbc930
to
ade8d53
Compare
This ensures no regression about hashicorp#7318 And ensure that hashicorp#7446 cannot happen anymore
ade8d53
to
9d1b832
Compare
0a4fcc9
to
52ec09e
Compare
52ec09e
to
c14cfda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This ensures no regression about #7318
And ensure that #7446 cannot happen anymore