Skip to content

Commit

Permalink
Explicitly analyse packages and verify processing stage
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Dec 13, 2024
1 parent ee80c2d commit 36f0bf4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tests/AppTests/IngestorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class IngestorTests: AppTestCase {
try await withDependencies {
$0.date.now = .now
$0.environment.allowSocialPosts = { false }
} operation: {
} operation: { [db = app.db] in
Current.fileManager.fileExists = { @Sendable _ in true }
Current.git.commitCount = { @Sendable _ in 1 }
Current.git.firstCommitDate = { @Sendable _ in .t0 }
Expand All @@ -440,7 +440,10 @@ class IngestorTests: AppTestCase {
return ""
}

try await Analyze.analyze(client: app.client, database: app.db, mode: .limit(10))
try await Analyze.analyze(client: app.client, database: db, mode: .id(.id0))
try await Analyze.analyze(client: app.client, database: db, mode: .id(.id1))
try await XCTAssertEqualAsync(try await Package.find(.id0, on: db)?.processingStage, .analysis)
try await XCTAssertEqualAsync(try await Package.find(.id1, on: db)?.processingStage, .analysis)
}
}

Expand Down

0 comments on commit 36f0bf4

Please sign in to comment.