Skip to content

Commit 16579d4

Browse files
committed
add units for each os.sleep
1 parent 3115d1a commit 16579d4

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

src/ascend/tasks.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function tasks.run(options)
7171
if (options.stop_on_empty and #taskQueue == 0) then
7272
return "empty"
7373
end
74-
os.sleep(100, 1000)
74+
os.sleep(100, "ms")
7575
end
7676
end
7777

src/version-info.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local ASCEND_VERSION = "0.8.4"
1+
local ASCEND_VERSION = "0.8.5"
22

33
return {
44
VERSION = ASCEND_VERSION

tests/assets/healthchecks/loop.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
while true do
44
print("date:", os.date())
5-
os.sleep(5)
5+
os.sleep(5, "s")
66
end

tests/assets/scripts/date.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
while true do
44
print("date:", os.date())
5-
os.sleep(5)
5+
os.sleep(5, "s")
66
end

tests/assets/scripts/ignore-sigterm.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ signal.handle(signal.SIGTERM, handle_sigterm)
1111
print("Script is running, try sending SIGTERM (kill -15 <PID>)")
1212

1313
while true do
14-
os.sleep(5)
14+
os.sleep(5, "s")
1515
end

tests/assets/scripts/one-kb.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ while true do
1111
print("SEbVoHJ9lOMqwJ8HJ2zOpA76KAhlnzvYLWcPGW9KNjFg5TzqI4zMEabLo1I7MQSHYRy1DXFkteCqeLOufeRacDncPMfkoN2mEBxL")
1212
print("vwjAFYsGfx4vzvyxwzArMkBSGc14kHSIQ5dvswJOpWGHxn4fVEnMY7Ii4AYXSab77PQXGkqnWueaaOgHTgB1vYim6K40hQJ8VaN7")
1313
print("s6KZCY8q0wfd3GXsizeOYkNLPBFu8sqozxgnqUqIWp6xHQILMJb5L3G49rDi3VpLuXdoRZGJRi5APrUawlxH2eCtY5NFEVWx6WEy")
14-
os.sleep(1)
14+
os.sleep(1, "s")
1515
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env eli
22

33
print("This will end after 1 sec")
4-
os.sleep(1)
4+
os.sleep(1, "s")
55
os.exit(1)

tests/assets/scripts/one-time.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env eli
22

33
print("This will end after 1 sec")
4-
os.sleep(1)
4+
os.sleep(1, "s")

tests/assets/scripts/one-time2.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env eli
22

33
print("This will end after 1 sec")
4-
os.sleep(1)
4+
os.sleep(1, "s")

tests/assets/scripts/working-dir.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
print(os.cwd())
33

44
while true do
5-
os.sleep(5)
5+
os.sleep(5, "s")
66
end

0 commit comments

Comments
 (0)