notify_test.go 360 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. )
  6. func TestDao_NotifyGame(t *testing.T) {
  7. once.Do(startDao)
  8. mid := int64(4780461)
  9. ak := "3cf80530cccafaa9ed675d8a493c1a89#tx"
  10. action := "changePwd"
  11. if err := d.NotifyGame(context.TODO(), mid, ak, action); err != nil {
  12. t.Errorf("dao.NotifyGame(%d, %s, %s) error(%v)", mid, ak, action, err)
  13. t.FailNow()
  14. }
  15. }