Skip to content

Refactored StressTest for easier configuration #204

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

Merged
merged 2 commits into from
Dec 9, 2016

Conversation

NiteshKant
Copy link
Contributor

Problem

StressTest is pretty useful to do blackbox testing of ReactiveSocket but it is hard to add behavior like leases, keep alive, timeouts, etc.

Modification

Refactored and did the following changes:

  • Introduced TestConfig that is all that needs to be altered to do behavior changes like lease, timeouts, etc.
  • Changed StressTest to use TestConfig and only contain the core logic of the test.
  • Introduced a StressTestDriver that contains the creation of config and invocation of StressTest

Result

More powerful StressTest which can be used for a variety of situations.

#### Problem

`StressTest` is pretty useful to do blackbox testing of ReactiveSocket. It is hard to add behavior like leases, keep alive, timeouts, etc.

#### Modification

Refactored and did the following changes:

- Introduced `TestConfig` that is all that needs to be altered to do behavior changes like lease, timeouts, etc.
- Changed `StressTest` to use `TestConfig` and only contain the core logic of the test.
- Introduced a `StressTestDriver` that contains the creation of config and invocation of `StressTest`

#### Result

More powerful `StressTest` which can be used for a variety of situations.
@NiteshKant NiteshKant requested a review from stevegury December 8, 2016 06:53
@stevegury
Copy link
Member

👍

@NiteshKant NiteshKant merged commit fd52305 into rsocket:0.5.x Dec 9, 2016
@NiteshKant NiteshKant deleted the 0.5.x-stress-lease branch December 9, 2016 23:47
NiteshKant added a commit to NiteshKant/reactivesocket-java that referenced this pull request Dec 14, 2016
#### Problem

`StressTest` is pretty useful to do blackbox testing of ReactiveSocket. It is hard to add behavior like leases, keep alive, timeouts, etc.

#### Modification

Refactored and did the following changes:

- Introduced `TestConfig` that is all that needs to be altered to do behavior changes like lease, timeouts, etc.
- Changed `StressTest` to use `TestConfig` and only contain the core logic of the test.
- Introduced a `StressTestDriver` that contains the creation of config and invocation of `StressTest`

#### Result

More powerful `StressTest` which can be used for a variety of situations.
ilayaperumalg pushed a commit to ilayaperumalg/rsocket-java that referenced this pull request Dec 26, 2017
Clarify language about COMPLETE in the frames with (C)omplete, and in the terminology section.
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.

2 participants