commit - 69d19e3e527d425a414641ed8e57b47070af1f73
commit + 64136a78952210fd892587d54c23ca7f3792c9a2
blob - 5ab5a97987bcd2e604d4125a7109c601fe5ee3f0
blob + 76267f0773d4ceb6eb4a6391a73d9447bbe9b3d8
--- CHANGELOG.md
+++ CHANGELOG.md
### Fixed
- Executing `close` method in a `Client` instance (#2).
+- list-append generator (#3).
[Unreleased]: https://github.com/ligurio/molly/compare/0.1.0...HEAD
blob - aba9334b2501051bb37db9f036d7b75902b9925c
blob + a70ca340f75a60c9316d44770fa910a759e66e32
--- molly/tests.lua
+++ molly/tests.lua
table.insert(mops, mop_append(param.key_count))
end
end
- return setmetatable({
+ return 0, setmetatable({
f = 'txn',
value = mops,
}, {
blob - e32ddd1f1928d03274b1e74e23267d8872081fbb
blob + 89e7c0628251fba4a53f0c33423e29c05fb65214
--- test/examples/sqlite-list-append.lua
+++ test/examples/sqlite-list-append.lua
}
local ok, err = molly.runner.run_test({
client = sqlite_list_append,
- generator = molly.tests.list_append_gen()
+ generator = molly.gen.time_limit(molly.tests.list_append_gen(), 0.05)
}, test_options)
if not ok then
blob - a50cbc758768bf76840618bd998d0e2dee3c18b0
blob + 5c6f8131b0a73944141e4af7301b5dcb258f2599
--- test/tests.lua
+++ test/tests.lua
test:plan(2)
local gen, param, state = tests.list_append_gen()
- local val = gen(param, state)
+ local _, val = gen(param, state)
local mop = val.value[1]
local op_type = mop[OP_TYPE]
local op_val = mop[OP_VAL]