go-common/app/job/main/figure/dao/account_test.go

21 lines
413 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"testing"
)
func TestPubStat(t *testing.T) {
once.Do(startService)
if err := d.UpdateAccountExp(context.TODO(), 7593623, 120.00); err != nil {
t.Errorf("d.UpdateAccountExp(%d) error(%v)", 7593623, err)
}
}
func TestIncArchiveViews(t *testing.T) {
once.Do(startService)
if err := d.IncArchiveViews(context.TODO(), 7593623); err != nil {
t.Errorf("error(%v)", err)
}
}