File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -306,9 +306,11 @@ fn pid_generation() {
306
306
}
307
307
308
308
#[ test]
309
- fn count_generation ( ) {
310
- let start = 52222 ;
309
+ fn count_generated_is_big_endian ( ) {
310
+ let start = 1122866 ;
311
311
OID_COUNTER . store ( start, Ordering :: SeqCst ) ;
312
+
313
+ // Test count generates correct value 1122866
312
314
let count_res = ObjectId :: gen_count ( ) ;
313
315
assert ! ( count_res. is_ok( ) ) ;
314
316
let count_bytes = count_res. unwrap ( ) ;
@@ -320,12 +322,8 @@ fn count_generation() {
320
322
321
323
let count = BigEndian :: read_u32 ( & buf) ;
322
324
assert_eq ! ( start as u32 , count) ;
323
- }
324
325
325
- #[ test]
326
- fn count_is_big_endian ( ) {
327
- let start = 1122867 ;
328
- OID_COUNTER . store ( start, Ordering :: SeqCst ) ;
326
+ // Test OID formats count correctly as big endian
329
327
let oid_res = ObjectId :: new ( ) ;
330
328
assert ! ( oid_res. is_ok( ) ) ;
331
329
let oid = oid_res. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments