repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d509fd2
)
test: use monotonic timer
author
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 23 Apr 2023 00:13:48 +0000
(
02:13
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Sun, 23 Apr 2023 00:13:48 +0000
(
02:13
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
test/utils/UtilsTest.ts
patch
|
blob
|
blame
|
history
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);
});