milestone 8: web server, rest api, sse, auth, metrics and static assets
This commit is contained in:
@@ -362,10 +362,10 @@ test "S8 case 5: a retention pass prunes the old rows and truncates the write-ah
|
||||
var pass: retention.Retention = .init(.{ .retention_days = 30 });
|
||||
pass.runOnce(io, log_db.database());
|
||||
|
||||
try testing.expectEqual(@as(u64, 1), pass.stats.passes);
|
||||
try testing.expectEqual(@as(u64, 2), pass.stats.rows_pruned);
|
||||
try testing.expectEqual(@as(u64, 1), pass.stats.checkpoints);
|
||||
try testing.expectEqual(@as(u64, 0), pass.stats.vacuums);
|
||||
try testing.expectEqual(@as(u64, 1), pass.snapshotStats().passes);
|
||||
try testing.expectEqual(@as(u64, 2), pass.snapshotStats().rows_pruned);
|
||||
try testing.expectEqual(@as(u64, 1), pass.snapshotStats().checkpoints);
|
||||
try testing.expectEqual(@as(u64, 0), pass.snapshotStats().vacuums);
|
||||
try testing.expectEqual(@as(i64, 2), try queries_repo.countRows(log_db.database()));
|
||||
// Both names stay: the dimension table is not collected.
|
||||
try testing.expectEqual(@as(i64, 2), try queries_repo.countDomains(log_db.database()));
|
||||
|
||||
Reference in New Issue
Block a user