Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Conversation

@JunTaoLuo
Copy link
Contributor

Addresses #2750. This will reduce test coverage and I'm modifying similar tests preemptively since they could probably fail in the same pattern.

}

mockKestrelTrace.Verify(t => t.ConnectionStop(It.IsAny<string>()), Times.Once());
mockKestrelTrace.Verify(t => t.ConnectionStop(It.IsAny<string>()), Times.AtMostOnce());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a point in checking these at all if we allow 0 and 1? Maybe we should just remove them entirely. I suppose we are making sure ConnectionStop is never called more than once still.

Copy link
Member

Choose a reason for hiding this comment

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

There's almost no point other than to remind us that there was once a useful assertion here. Be extra careful not to apply these changes to release/2.2 or master when we merge.

@Tratcher
Copy link
Member

Background please. What is the problem and how does this fix it?

This is 2.1 only and won't be merged to 2.2 or master, correct?

@JunTaoLuo
Copy link
Contributor Author

Most of the information is in the issue. There are test failures in 2.1 which were fixed in 2.2 and master via changes in #2646. However, @Eilon has asked to fix the tests without back-porting src changes since product changes for 2.1 are unlikely to be approved by shiproom unless it was reported by customers.

@Eilon
Copy link
Contributor

Eilon commented Sep 11, 2018

Yup.

}

mockKestrelTrace.Verify(t => t.ConnectionStop(It.IsAny<string>()), Times.Once());
mockKestrelTrace.Verify(t => t.ConnectionStop(It.IsAny<string>()), Times.AtMostOnce());
Copy link
Member

Choose a reason for hiding this comment

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

There's almost no point other than to remind us that there was once a useful assertion here. Be extra careful not to apply these changes to release/2.2 or master when we merge.

@JunTaoLuo JunTaoLuo merged commit 5ba327f into release/2.1 Sep 11, 2018
@JunTaoLuo JunTaoLuo deleted the johluo/flaky-connection-stop branch September 11, 2018 22:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants