Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgacy committed May 10, 2024
1 parent dc500f7 commit 70c6576
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/PersistenceTests/PersistenceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ final class PersistenceTests: XCTestCase {
let string: String

var attributes: [String: AttributeValue] {
var values: [CodingKeys: AttributeValue] = [
let values: [CodingKeys: AttributeValue] = [
.bool: .bool(bool),
.string: .s(string)
]

return values.attributeValues()
}
}

let timeoutInterval: TimeInterval = 0.1

func testPersistence() async throws {
let expected: [String: AttributeValue] = [
"Bool": .bool(true),
Expand All @@ -43,6 +44,6 @@ final class PersistenceTests: XCTestCase {
}

try await sut.put(Model(bool: true, string: "string"))
await fulfillment(of: [expectation])
await fulfillment(of: [expectation], timeout: timeoutInterval)
}
}

0 comments on commit 70c6576

Please sign in to comment.