Skip to content

Commit

Permalink
test: reduce threshold and interval for running migration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersiddhu committed Dec 9, 2020
1 parent 5eeca6a commit ad8f865
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/repository/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestMigrateRepositories(t *testing.T) {
server, client := fake.GhServerClient()
defer server.Close()
gr := new(errgroup.Group)
deadline := time.Now().Add(6 * time.Second)
deadline := time.Now().Add(4 * time.Second)
ctx, cancelFn := context.WithDeadline(context.Background(), deadline)
defer cancelFn()
m := &migration{
Expand All @@ -29,7 +29,7 @@ func TestMigrateRepositories(t *testing.T) {
client: client,
repoShare: make(chan *gh.Repository),
repoNameShare: make(chan string),
pollInterval: time.Second * 1,
pollInterval: time.Millisecond * 500,
pollThreshold: ctx,
log: logrus.NewEntry(&logrus.Logger{
Out: ioutil.Discard,
Expand Down

0 comments on commit ad8f865

Please sign in to comment.