Skip to content

Commit 6079b4c

Browse files
committed
Improve TraceParent randomness unit-test
1 parent 567ad83 commit 6079b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/W3CTraceContextTests/TraceParentTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ final class TraceParentRawRepresentableTests: XCTestCase {
157157
let traceParent = TraceParent.random()
158158

159159
// validate random trace-parent by parsing its raw value
160-
XCTAssertNotNil(TraceParent(rawValue: traceParent.rawValue))
160+
XCTAssertEqual(TraceParent(rawValue: traceParent.rawValue), traceParent)
161161
}
162162
}
163163

0 commit comments

Comments
 (0)