Skip to content

Commit

Permalink
Reducing logging in reactivesocket unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jacobs committed Jun 13, 2016
1 parent 2632c0e commit d5c1203
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,8 @@ public void onSubscribe(Subscription s) {
@Override
public void onNext(Payload payload) {
ByteBuffer data = payload.getData();
String s = new String(data.array());

System.out.println(s);
//String s = new String(data.array());
//System.out.println(s);

latch1.countDown();
latch2.countDown();
Expand Down Expand Up @@ -159,9 +158,8 @@ public void onSubscribe(Subscription s) {
@Override
public void onNext(Payload payload) {
ByteBuffer data = payload.getData();
String s = new String(data.array());

System.out.println(System.currentTimeMillis() + " : " + i.incrementAndGet());
//String s = new String(data.array());
//System.out.println(System.currentTimeMillis() + " : " + i.incrementAndGet());

latch1.countDown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ public void testTwoSubscribersOneSlowOneFast() throws Exception {
.observeOn(Schedulers.newThread())
.map(n -> {
try {
System.out.println("Sleeping on thread : " + Thread.currentThread().getName());
Thread.sleep(100);
return n;
} catch (InterruptedException ex) {
Expand Down Expand Up @@ -257,7 +256,7 @@ public void onError(Throwable e) {

@Override
public void onNext(Boolean b) {
System.out.println(System.currentTimeMillis() + " : " + Thread.currentThread().getName() + " : OnNext : " + b);
//System.out.println(System.currentTimeMillis() + " : " + Thread.currentThread().getName() + " : OnNext : " + b);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public SyntheticBlockingCommand() {
@Override
protected Integer run() throws Exception {
int n = r.nextInt(100);
System.out.println(System.currentTimeMillis() + " : " + Thread.currentThread().getName() + " sleeping for : " + n);
Thread.sleep(n);
return n;
}
Expand Down

0 comments on commit d5c1203

Please sign in to comment.