[wip] add run tests
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/build unknown status

This commit is contained in:
Simon Vieille 2024-03-20 16:12:11 +01:00
parent 1c9cf2629c
commit 3405d3b60d
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -65,5 +65,12 @@ func TestAppRun(t *testing.T) {
if count != 0 {
t.Fatalf("TestAppRuny: table_truncate1 check failed")
}
row = db.QueryRow("SELECT COUNT(*) FROM table_truncate2")
row.Scan(&count)
if count != 1 {
t.Fatalf("TestAppRuny: table_truncate2 check failed")
}
}
}