Skip to content

Commit

Permalink
[GR-44469] CPUSampler: Failed to shutdown background threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzezula committed Feb 27, 2023
1 parent c2e5c2c commit 18c59cf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,9 @@ public void testSamplerJson() {
period = sampler.getPeriod();
sampleCount = samplerData.getSamples();
gatherSelfHitTimes = sampler.isGatherSelfHitTimes();
context.close();
sampler.setCollecting(false);
}
context.close();
JSONArray contexts = (JSONArray) new JSONObject(out.toString()).get("contexts");
JSONObject firstContext = (JSONObject) contexts.get(0);

Expand Down

0 comments on commit 18c59cf

Please sign in to comment.