Skip to content
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

Add a timeout to attach and detach calls #62

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

lpabon
Copy link
Member

@lpabon lpabon commented Aug 1, 2018

This is PR #52 plus tests

Fixes #51

calls []csiCall
index int
t *testing.T
delays []time.Duration
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add delay to csiCall struct? I find it odd to have two arrays that are supposed to have the same length. It also simplifies the handling a bit, you just add sleep after reflect.DeepEqual below.

Copy link
Member Author

Choose a reason for hiding this comment

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

You got it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Unnamed structs are a pain to fix 😢

Signed-off-by: Luis Pabón <[email protected]>
@jsafrane
Copy link
Contributor

jsafrane commented Aug 2, 2018

/lgtm

Thanks for taking over the PR.

@jsafrane jsafrane merged commit a4398f8 into kubernetes-csi:master Aug 2, 2018
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