v2.4.2 patch2
Build and publish Jiaowu packages and container image / Test, package and publish (push) Failing after 12m23s
Build and publish Jiaowu packages and container image / Test, package and publish (push) Failing after 12m23s
This commit is contained in:
1 parent
16f4849f62
commit
713692abbd
2 files changed
+14
No files matched your search
@@ -46,6 +46,11 @@ jobs:
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
- name: Install Chinese PDF font for backend tests
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --yes fonts-noto-cjk
|
||||
|
||||
- name: Run backend tests
|
||||
run: dotnet test Jiaowu.slnx --configuration Release
|
||||
|
||||
|
||||
@@ -124,6 +124,15 @@ public sealed class CourseGradeStatisticsRefreshSchedulerTests
|
||||
db.TeachingTaskGradeStatistics.AddRange(
|
||||
FreshStatistic(firstSheet, course, term),
|
||||
FreshStatistic(secondSheet, course, term));
|
||||
db.StudentAcademicStatistics.Add(new StudentAcademicStatistic
|
||||
{
|
||||
StudentId = student.Id,
|
||||
CourseCount = 2,
|
||||
Gpa = 3m,
|
||||
WeightedAverageScore = 85m,
|
||||
AverageScore = 85m,
|
||||
CalculatedAt = DateTime.UtcNow.AddMinutes(1)
|
||||
});
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
var queuedAfterFreshStatistics = await scheduler.EnqueueStaleAsync(
|
||||
|
||||
Reference in new issue
Block a user