Fix the admin tests but need to use Linux to dev it further.
This commit is contained in:
parent
a13d914a88
commit
81cf5e0d93
2 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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...)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue