Skip to content

Commit ef3cd55

Browse files
committed
test
1 parent d42d61d commit ef3cd55

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
with:
1616
linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9"]'
1717
linux_pre_build_command: command -v apt >/dev/null 2>&1 && apt update && apt install -y libsqlite3-dev libncurses-dev || (command -v yum >/dev/null 2>&1 && yum update -y && yum install -y sqlite-devel ncurses-devel)
18-
linux_build_command: 'swift build'
18+
linux_build_command: 'swift test --no-parallel'
1919
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
2020
windows_swift_versions: '["nightly-main"]'
21-
windows_build_command: 'swift build'
21+
windows_build_command: 'swift test --no-parallel'
2222
soundness:
2323
name: Soundness
2424
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main

Sources/SWBUtil/HeavyCache.swift

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -292,18 +292,6 @@ public final class HeavyCache<Key: Hashable, Value>: _HeavyCacheBase, KeyValueSt
292292
if let ttl = _timeToLive {
293293
// We always schedule at the requested TTL, on average an object will live 50% longer than the TTL.
294294
_timer?.cancel()
295-
_timer = Task { [weak self] in
296-
while !Task.isCancelled {
297-
if let self = self {
298-
self.preventExpiration {
299-
self.stateLock.withLock {
300-
self._pruneForTTL()
301-
}
302-
}
303-
}
304-
try await Task.sleep(for: ttl)
305-
}
306-
}
307295
} else {
308296
_timer?.cancel()
309297
_timer = nil

Tests/SwiftBuildTests/ProjectModel/CustomTaskTests.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ func testCodable<T>(
2222
_ line: Int = #line,
2323
_ column: Int = #column
2424
) throws where T: Codable & Equatable {
25-
var original = original
26-
if let modify { modify(&original) }
27-
let data = try JSONEncoder().encode(original)
28-
let obj = try JSONDecoder().decode(T.self, from: data)
29-
#expect(original == obj, sourceLocation: SourceLocation(fileID: fileID, filePath: filePath, line: line, column: column))
25+
3026
}
3127

3228
@Suite

0 commit comments

Comments
 (0)