Skip to content

Commit

Permalink
tests: fixes flaky test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed Jun 24, 2020
1 parent 8aee479 commit 0f85760
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/Unit/Propagation/TraceContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace ZipkinTests\Unit\Propagation;

use PHPUnit\Framework\TestCase;
use Zipkin\Propagation\TraceContext;
use Zipkin\Propagation\Exceptions\InvalidTraceContextArgument;
use Zipkin\Propagation\DefaultSamplingFlags;
use Zipkin\Propagation\TraceContext;
use PHPUnit\Framework\TestCase;

final class TraceContextTest extends TestCase
{
Expand Down Expand Up @@ -193,9 +193,9 @@ public function testIsEqualSuccessOnDifferentContexts($sampled, $debug)
$traceContext1 = TraceContext::create(
$this->maybeMutate(self::TEST_TRACE_ID),
$this->maybeMutate(self::TEST_SPAN_ID),
$this->maybeMutate(self::TEST_PARENT_ID),
$this->maybeMutate($sampled),
$this->maybeMutate($debug, self::IS_FINAL_MUTATION)
$this->maybeMutate(self::TEST_PARENT_ID, self::IS_FINAL_MUTATION),
$sampled,
$debug
);

$traceContext2 = TraceContext::create(
Expand All @@ -219,7 +219,7 @@ public function testIsSharedSuccess()
false,
true
);

$this->assertTrue($traceContext->isShared());

$traceContext = TraceContext::create(
Expand All @@ -230,7 +230,7 @@ public function testIsSharedSuccess()
false,
false
);

$this->assertFalse($traceContext->isShared());
}

Expand All @@ -244,9 +244,9 @@ public function testWithSharedSuccess()
false,
false
);

$sharedTraceContext = $traceContext->withShared(true);

$this->assertTrue($sharedTraceContext->isEqual($traceContext));
}

Expand Down

0 comments on commit 0f85760

Please sign in to comment.