File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class ID {
9
9
static String _hexTimestamp() {
10
10
final now = DateTime.now();
11
11
final sec = (now.millisecondsSinceEpoch / 1000).floor();
12
- final usec = now.microsecondsSinceEpoch - secondsSinceEpoch * 1000000;
12
+ final usec = now.microsecondsSinceEpoch - sec * 1000000;
13
13
return sec.toRadixString(16) +
14
14
usec.toRadixString(16).padLeft(5, '0');
15
15
}
Original file line number Diff line number Diff line change @@ -225,11 +225,11 @@ public function testHTTPSuccess(): void
225
225
\json_decode ($ expected , true ),
226
226
\json_decode ($ output [$ index ], true )
227
227
);
228
- } else if ($ expected == 'unique() ' ) {
229
- $ this ->assertNotEmpty ($ output [$ i ]);
230
- $ this ->assertIsString ($ output [$ i ]);
231
- $ this ->assertEquals (20 , strlen ($ output [$ i ]));
232
- $ this ->assertNotEquals ($ output [$ i ], 'unique() ' );
228
+ } elseif ($ expected == 'unique() ' ) {
229
+ $ this ->assertNotEmpty ($ output [$ index ]);
230
+ $ this ->assertIsString ($ output [$ index ]);
231
+ $ this ->assertEquals (20 , strlen ($ output [$ index ]));
232
+ $ this ->assertNotEquals ($ output [$ index ], 'unique() ' );
233
233
} else {
234
234
$ this ->assertEquals ($ expected , $ output [$ index ]);
235
235
}
You can’t perform that action at this time.
0 commit comments