From 81cf5e0d93e8f0427873dc6dfa73639d6e23d9e4 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 2 Aug 2025 11:18:59 -0400 Subject: [PATCH] Fix the admin tests but need to use Linux to dev it further. --- tests/admin_test.go | 4 +++- tests/tools.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/admin_test.go b/tests/admin_test.go index ee37c9e..269e41c 100644 --- a/tests/admin_test.go +++ b/tests/admin_test.go @@ -36,7 +36,9 @@ func TestAdminIndexPage(t *testing.T) { _, err = data.DB.Exec(sql_query, args...) assert.NoError(err) - id, count, err = admin.Insert(table, val) + id, count, err := admin.Insert(table, val) + assert.Equal(count, 1) + assert.NotEqual(id, 0) assert.NoError(err, email) } diff --git a/tests/tools.go b/tests/tools.go index 36168d8..74a19fc 100644 --- a/tests/tools.go +++ b/tests/tools.go @@ -61,7 +61,7 @@ func (z *ZedBrowser) TypeIn(id string, text string) { func Setup(t *testing.T, timeout time.Duration) (*ZedBrowser, context.CancelFunc) { opts := append(browser.DefaultExecAllocatorOptions[:], - browser.Flag("headless", runtime.GOOS == "windows"),) + browser.Flag("headless", runtime.GOOS == "windows"),) ctx, cancel := browser.NewExecAllocator(context.Background(), opts...)