Skip to content

Commit 3b87ab2

Browse files
committed
Updated integration tests
1 parent 17483ee commit 3b87ab2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

IntegrationTest/lua/mysqloo/tests/prepared_query_tests.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,10 @@ end)
181181
TestFramework:RegisterTest("[Prepared Query] should return correct error", function(test)
182182
local db = TestFramework:ConnectToDatabase()
183183
local qu = db:prepare("SEsdg")
184-
function qu:onError(err)
184+
function qu:onError(err, sql)
185185
test:shouldBeEqual(qu:error(), err)
186186
test:shouldBeGreaterThan(#qu:error(), 0)
187+
test:shouldBeEqual(sql, "SEsdg")
187188
test:Complete()
188189
end
189190
qu:start()

IntegrationTest/lua/mysqloo/tests/query_tests.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ end)
121121
TestFramework:RegisterTest("[Query] should return correct error", function(test)
122122
local db = TestFramework:ConnectToDatabase()
123123
local qu = db:query("SEsdg")
124-
function qu:onError(err)
124+
function qu:onError(err, sql)
125125
test:shouldBeEqual(qu:error(), err)
126+
test:shouldBeEqual(sql, "SEsdg")
126127
test:shouldBeGreaterThan(#qu:error(), 0)
127128
test:Complete()
128129
end

0 commit comments

Comments
 (0)