aso_incr_migration_test.go 476 B

1234567891011121314151617181920212223
  1. package service
  2. import (
  3. "testing"
  4. "go-common/app/job/main/passport-encrypt/conf"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestService_IncMigration(t *testing.T) {
  8. once.Do(startService)
  9. c := conf.Conf
  10. Convey("test full migration ", t, func() {
  11. s.asobinlogconsumeproc()
  12. for i := 0; i < c.Group.AsoBinLog.Num; i++ {
  13. ch := make(chan *message, c.Group.AsoBinLog.Chan)
  14. s.merges[i] = ch
  15. s.asobinlogmergeproc(ch)
  16. }
  17. s.asobinlogcommitproc()
  18. })
  19. }