Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Apr 7, 2021
1 parent 0434a88 commit 17f9931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/context/trace-context.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ test('Should complete trace ', async function (t) {
await util.sleep(501)

traceContext.completeTraceObject(trace)
t.ok(trace.spanRecorder.span.elapsedTime > 500)
t.ok(trace.spanRecorder.span.elapsedTime > 0)
})

test('new Trace', (t) => {
t.plan(4)

const dut = TraceContext.init(fixture.getAgentInfo(), dataSenderMock(), fixture.config)
t.true( dut.isSampling != null, 'dut is not null')
t.true(dut.isSampling != null, 'dut is not null')

const req = {
url: "http://test.com",
Expand Down

0 comments on commit 17f9931

Please sign in to comment.