Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/app_state_sync_open_session_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ void main() {
expect(BandOwnership.foregroundIntent, isFalse);
expect(BandOwnership.owner, isNull);
expect(rig.app.busy, isFalse);
// let queued db work finish before the rig closes the database
await rig.quiesce();
}));

test('the drain throws: logged, no derive request, the link and the '
Expand Down
10 changes: 5 additions & 5 deletions test/hmm_staging_provenance_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:convert';
import 'dart:io';

import 'package:crypto/crypto.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:openstrap_edge/compute/derivation_engine.dart' show kAlgoVersion;
import 'package:openstrap_edge/compute/onehz_pipeline.dart';
Expand All @@ -21,9 +20,10 @@ void main() {
final implicit = {...off}..remove('use_hmm_stages');
final stored = jsonEncode(deriveDayBundle(off));
expect(stored, jsonEncode(deriveDayBundle(implicit)));
// Captured at 90a879b21 with this six-minute fixture, before production edits.
expect(sha256.convert(utf8.encode(stored)).toString(),
'01c1d05988233c2902d97e48a3bde7ca2a9261f1c84ab7d357f658ca3270a1d7');
// A literal hash pinned every later algo/stress change; flag-off output
// is guarded by equality with the implicit-default run plus no HMM keys.
expect(stored.contains('staging_method'), isFalse);
expect(stored.contains('staging_effective'), isFalse);
final sleep = deriveDayBundle(off)['sleep'] as Map;
expect(sleep.keys.where((k) => k.toString().startsWith('staging_') ||
k.toString().startsWith('stager_')), isEmpty);
Expand All @@ -32,7 +32,7 @@ void main() {
// why: immutable day rows need a new version before provenance can be stored.
// # catches: leaving the producing algorithm at 124.
test('provenance has a fresh algorithm version', () {
expect(kAlgoVersion, 125);
expect(kAlgoVersion, greaterThanOrEqualTo(125));
});

// why: opting in is not evidence that HMM produced the labels.
Expand Down
Loading