From 3405d3b60d51f89607b0d029b1f34cb865549f84 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 20 Mar 2024 16:12:11 +0100 Subject: [PATCH] [wip] add run tests --- app/app_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/app_test.go b/app/app_test.go index cca229e..1288c8e 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -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") + } } }