Skip to content

Commit

Permalink
restore the global variable after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta authored and ti-chi-bot committed Apr 20, 2023
1 parent 2718d32 commit d020b28
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ddl/backfilling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ func TestDoneTaskKeeper(t *testing.T) {
}

func TestPickBackfillType(t *testing.T) {
originMgr := ingest.LitBackCtxMgr
originInit := ingest.LitInitialized
originFastReorg := variable.EnableFastReorg.Load()
defer func() {
ingest.LitBackCtxMgr = originMgr
ingest.LitInitialized = originInit
variable.EnableFastReorg.Store(originFastReorg)
}()
mockMgr := ingest.NewMockBackendCtxMgr(
func() sessionctx.Context {
return nil
Expand Down

0 comments on commit d020b28

Please sign in to comment.