mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-27 01:50:31 +08:00
简化代码/增加HTTPPage服务
This commit is contained in:
@@ -2,4 +2,23 @@ package models
|
||||
|
||||
import (
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestHTTPWebDAO_UpdateWebShutdown(t *testing.T) {
|
||||
{
|
||||
err := SharedHTTPWebDAO.UpdateWebShutdown(1, []byte("{}"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
err := SharedHTTPWebDAO.UpdateWebShutdown(1, nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
t.Log("ok")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user