Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
straybirdzls committed Nov 14, 2018
1 parent a0f3a19 commit 7ef9386
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,24 @@ public void before() {
}

@Test
public void testGetSofaTracerDigestReporterAsyncManager() throws Exception{
public void testGetSofaTracerDigestReporterAsyncManager() throws Exception {
final AtomicInteger npeCount = new AtomicInteger();
final AtomicInteger successCount = new AtomicInteger();
int testTimes = 1000;
int threadCount = 100;
final CountDownLatch latch = new CountDownLatch(testTimes);
for (int times = 0 ; times < testTimes; times ++) {
for (int times = 0; times < testTimes; times++) {
Executors.newFixedThreadPool(threadCount).execute(new Runnable() {
@Override
public void run() {
try {
AsyncCommonDigestAppenderManager sofaTracerDigestReporterAsyncManager =
SofaTracerDigestReporterAsyncManager.getSofaTracerDigestReporterAsyncManager();
AsyncCommonDigestAppenderManager sofaTracerDigestReporterAsyncManager = SofaTracerDigestReporterAsyncManager
.getSofaTracerDigestReporterAsyncManager();
sofaTracerDigestReporterAsyncManager.append(sofaTracerSpan);
successCount.getAndIncrement();
}catch (NullPointerException e){
} catch (NullPointerException e) {
npeCount.getAndIncrement();
}finally {
} finally {
latch.countDown();
}
}
Expand Down

0 comments on commit 7ef9386

Please sign in to comment.