Skip to content

Commit

Permalink
Fix a couple tests failing with IBM 8
Browse files Browse the repository at this point in the history
  • Loading branch information
randomanderson committed Sep 3, 2019
1 parent 457410e commit 619ecb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ class SpanImplTest extends Specification {
def "test JSON rendering with big ID values"() {
setup: "create span"
def parentContext = new SpanContextImpl(
new BigInteger(2).pow(64).subtract(1).toString(),
BigInteger.valueOf(2).pow(64).subtract(1).toString(),
"123",
new BigInteger(2).pow(64).subtract(2).toString())
BigInteger.valueOf(2).pow(64).subtract(2).toString())
def span = new SpanImpl(trace, parentContext, startTimestamp)
span.finish()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ import datadog.trace.tracer.writer.AgentWriter
import datadog.trace.tracer.writer.SampleRateByService
import datadog.trace.tracer.writer.Writer
import datadog.trace.util.gc.GCUtils
import spock.lang.Requires
import spock.lang.Shared
import spock.lang.Specification

import java.lang.ref.WeakReference
import java.util.concurrent.TimeUnit
import java.util.concurrent.atomic.AtomicInteger

@Requires({ !System.getProperty("java.vm.name").contains("IBM J9 VM") })
class TracerTest extends Specification {

@Shared
Expand Down

0 comments on commit 619ecb8

Please sign in to comment.