1234567891011121314151617181920212223 |
- package service
- import (
- "testing"
- "go-common/app/job/main/passport-encrypt/conf"
- . "github.com/smartystreets/goconvey/convey"
- )
- func TestService_IncMigration(t *testing.T) {
- once.Do(startService)
- c := conf.Conf
- Convey("test full migration ", t, func() {
- s.asobinlogconsumeproc()
- for i := 0; i < c.Group.AsoBinLog.Num; i++ {
- ch := make(chan *message, c.Group.AsoBinLog.Chan)
- s.merges[i] = ch
- s.asobinlogmergeproc(ch)
- }
- s.asobinlogcommitproc()
- })
- }
|