diff --git a/tests/test-spawn.lua b/tests/test-spawn.lua index b06249a0..8782fb9c 100644 --- a/tests/test-spawn.lua +++ b/tests/test-spawn.lua @@ -29,6 +29,9 @@ local steps = { error_message = spawn(" ") assert(string.find(error_message, 'Text was empty'), error_message) + error_message = spawn("") + assert(string.find(error_message, 'Text was empty'), error_message) + error_message = spawn{} assert(string.find(error_message, 'There is nothing to execute'), error_message) @@ -90,17 +93,6 @@ local steps = { return true end end, - function() - -- Test empty command table - spawn{} - return true - end, - function() - -- Test empty command string - spawn("") - assert(#client.get() == 0) - return true - end, } runner.run_steps(steps)