Skip to content

Commit 5fc746b

Browse files
committed
move constant outside of loop
1 parent c3308e3 commit 5fc746b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/AWSLambdaRuntimeTests/UtilsTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import Testing
1919
struct UtilsTest {
2020
@Test
2121
func testGenerateXRayTraceID() {
22+
// the time and identifier should be in hexadecimal digits
23+
let allowedCharacters = "0123456789abcdef"
2224
let numTests = 1000
2325
var values = Set<String>()
2426
for _ in 0..<numTests {
25-
// the time and identifier should be in hexadecimal digits
26-
let allowedCharacters = "0123456789abcdef"
2727
// check the format, see https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html#xray-api-traceids)
2828
let traceId = AmazonHeaders.generateXRayTraceID()
2929
let segments = traceId.split(separator: "-")

0 commit comments

Comments
 (0)