diff options
| -rw-r--r-- | .github/workflows/test.yml | 1 | ||||
| -rw-r--r-- | src/luarocks/util.lua | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d856e77f..9082c431 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml | |||
| @@ -50,6 +50,7 @@ jobs: | |||
| 50 | luarocks install busted | 50 | luarocks install busted |
| 51 | luarocks install cluacov | 51 | luarocks install cluacov |
| 52 | luarocks install busted-htest | 52 | luarocks install busted-htest |
| 53 | luarocks install compat53 | ||
| 53 | 54 | ||
| 54 | - name: Unit Test | 55 | - name: Unit Test |
| 55 | run: | | 56 | run: | |
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 04865715..145993ea 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
| @@ -63,9 +63,9 @@ local scheduled_functions = {} | |||
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | function util.schedule_function(f, ...) | 65 | function util.schedule_function(f, ...) |
| 66 | local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS | 66 | -- local pack = table.pack or function(...) return { n = select("#", ...), ... } end --! FOR TESTS TO PASS |
| 67 | 67 | ||
| 68 | local item = { fn = f, args = pack(...) } | 68 | local item = { fn = f, args = table.pack(...) } |
| 69 | table.insert(scheduled_functions, item) | 69 | table.insert(scheduled_functions, item) |
| 70 | return item | 70 | return item |
| 71 | end | 71 | end |
