Skip to content

Commit

Permalink
fix wrong var name
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed May 20, 2024
1 parent c58d4b5 commit 6f119d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Test/AwsCommonRuntimeKitTests/mqtt/Mqtt5ClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1934,15 +1934,15 @@ class Mqtt5ClientTests: XCBaseTestCase {

let testContext = MqttTestContext()
let client = try createClient(clientOptions: clientOptions, testContext: testContext)
// offline operation would never complete. Use close to force quit
// offline operation would never complete. Use close to force quit.
defer { client.close() }
try connectClient(client: client, testContext: testContext)
try stopClient(client: client, testContext: testContext)

let topic = "test/MQTT5_Binding_Swift_" + UUID().uuidString
let subscribePacket = PublishPacket(qos: QoS.atLeastOnce, topic: topic)
let publishPacket = PublishPacket(qos: QoS.atLeastOnce, topic: topic)
Task {
let _ = try? await client.publish(publishPacket: subscribePacket)
let _ = try? await client.publish(publishPacket: publishPacket)
}
}
}

0 comments on commit 6f119d9

Please sign in to comment.