Skip to content

Commit

Permalink
Fixed a typo the UnitTest class of OperationThrottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldejong committed May 5, 2013
1 parent 02ee6fa commit 2519ef8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rxjava-core/src/main/java/rx/operators/OperationThrottle.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ public void before() {
public void testThrottlingWithCompleted() {
Observable<String> source = Observable.create(new Func1<Observer<String>, Subscription>() {
@Override
public Subscription call(Observer<String> observser) {
publishNext(observser, 100, "one"); // Should be skipped since "two" will arrive before the timeout expires.
publishNext(observser, 400, "two"); // Should be published since "three" will arrive after the timeout expires.
publishNext(observser, 900, "four"); // Should be skipped since onCompleted will arrive before the timeout expires.
publishCompleted(observser, 1000); // Should be published as soon as the timeout expires.
public Subscription call(Observer<String> observer) {
publishNext(observer, 100, "one"); // Should be skipped since "two" will arrive before the timeout expires.
publishNext(observer, 400, "two"); // Should be published since "three" will arrive after the timeout expires.
publishNext(observer, 900, "four"); // Should be skipped since onCompleted will arrive before the timeout expires.
publishCompleted(observer, 1000); // Should be published as soon as the timeout expires.

return Subscriptions.empty();
}
Expand Down

0 comments on commit 2519ef8

Please sign in to comment.