lex-coldstart 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d28431932d0756af6a589d30ed7e2046bd519140cfbf78de49f69ce3acc3d551
|
|
4
|
+
data.tar.gz: 28cff73b6cd7cc2f0fa15c1376c8d618caeae322d7763390ac261a7fa493966d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9616d3e437ac7c7a7850bca1e02ebc38e3c1c61af351f2c2c44e3a683cdbc2a845b71291b314252cbae8a034e0d90f584ce2c4723a920717cd9a5a5fe10f9242
|
|
7
|
+
data.tar.gz: 07740be2f6c79f85948ef0617cdb750c477478fe436372ed421accb1213004f7d4788b9d7c964ca32aeb1dbfeb8287cdcaafa49873ab91f94ca9150cb656a0f8
|
|
@@ -75,6 +75,34 @@ RSpec.describe 'lex-coldstart local persistence' do
|
|
|
75
75
|
b2 = fresh_bootstrap
|
|
76
76
|
expect(b2.started_at).not_to be_nil
|
|
77
77
|
end
|
|
78
|
+
|
|
79
|
+
it 'does not reset started_at when begin_imprint is called again without force' do
|
|
80
|
+
first_time = Time.utc(2026, 4, 2, 12, 0, 0)
|
|
81
|
+
second_time = first_time + 60
|
|
82
|
+
allow(Time).to receive(:now).and_return(first_time, second_time)
|
|
83
|
+
|
|
84
|
+
b = fresh_bootstrap
|
|
85
|
+
b.begin_imprint
|
|
86
|
+
original_started_at = b.started_at
|
|
87
|
+
|
|
88
|
+
b.begin_imprint
|
|
89
|
+
|
|
90
|
+
expect(b.started_at.to_i).to eq(original_started_at.to_i)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
it 'resets started_at when begin_imprint is called with force: true' do
|
|
94
|
+
first_time = Time.utc(2026, 4, 2, 12, 0, 0)
|
|
95
|
+
second_time = first_time + 60
|
|
96
|
+
allow(Time).to receive(:now).and_return(first_time, second_time)
|
|
97
|
+
|
|
98
|
+
b = fresh_bootstrap
|
|
99
|
+
b.begin_imprint
|
|
100
|
+
original_started_at = b.started_at
|
|
101
|
+
|
|
102
|
+
b.begin_imprint(force: true)
|
|
103
|
+
|
|
104
|
+
expect(b.started_at.to_i).to be > original_started_at.to_i
|
|
105
|
+
end
|
|
78
106
|
end
|
|
79
107
|
|
|
80
108
|
describe 'calibration_state symbol round-trip' do
|