Skip to content

Commit

Permalink
ddl/util: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Jun 13, 2019
1 parent 8c4def9 commit 6b069c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddl/util/syncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ func TestSyncerSimple(t *testing.T) {

// for StartCleanWork
go d.SchemaSyncer().StartCleanWork()
ttl := 10 * 60
// Make sure NeededCleanTTL > 1/3 ttl, then we definitely clean the ttl.
NeededCleanTTL = int64(5 * 60)
ttl := 10
// Make sure NeededCleanTTL > 2/3 ttl, then we definitely clean the ttl.
NeededCleanTTL = int64(9)
ttlKey := "session_ttl_key"
ttlVal := "session_ttl_val"
session, err := owner.NewSession(ctx, "", cli, owner.NewSessionDefaultRetryCnt, ttl)
Expand Down

0 comments on commit 6b069c3

Please sign in to comment.