mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 23:20:26 +08:00
25 lines
347 B
Go
25 lines
347 B
Go
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")
|
|
}
|