repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test: use monotonic timer
[e-mobility-charging-stations-simulator.git]
/
test
/
utils
/
UtilsTest.ts
diff --git
a/test/utils/UtilsTest.ts
b/test/utils/UtilsTest.ts
index 9bf708027caf654f390b7bad646c4c94589cdb72..5732e57ed316673e1cbc538d9b853a0c33d90665 100644
(file)
--- a/
test/utils/UtilsTest.ts
+++ b/
test/utils/UtilsTest.ts
@@
-17,9
+17,9
@@
describe('Utils test suite', () => {
});
it('Verify sleep()', async () => {
- const start =
Dat
e.now();
+ const start =
performanc
e.now();
await Utils.sleep(1000);
- const end =
Dat
e.now();
+ const end =
performanc
e.now();
expect(end - start).toBeGreaterThanOrEqual(1000);
});