Skip to content

Commit 8115601

Browse files
Improve test case isolation
1 parent 863a7cd commit 8115601

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/ws4sqlite_test.go

+7-3
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,17 @@ func TestResultSetOrder(t *testing.T) {
389389
req := request{
390390
Transaction: []requestItem{
391391
{
392-
Query: "CREATE TABLE table_with_many_columns (d INT, c INT, b INT, a INT)",
392+
Statement: "CREATE TABLE table_with_many_columns (d INT, c INT, b INT, a INT)",
393393
},
394394
{
395-
Query: "INSERT INTO table_with_many_columns VALUES (4, 3, 2, 1)",
395+
Statement: "INSERT INTO table_with_many_columns VALUES (4, 3, 2, 1)",
396396
},
397397
{
398398
Query: "SELECT * FROM table_with_many_columns",
399399
},
400+
{
401+
Statement: "DROP TABLE table_with_many_columns",
402+
},
400403
},
401404
}
402405
code, _, res := call("test", req, t)
@@ -408,7 +411,8 @@ func TestResultSetOrder(t *testing.T) {
408411

409412
if !res.Results[0].Success ||
410413
!res.Results[1].Success ||
411-
!res.Results[2].Success {
414+
!res.Results[2].Success ||
415+
!res.Results[3].Success {
412416
t.Error("did not succeed")
413417
return
414418
}

0 commit comments

Comments
 (0)