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 committed Apr 20, 2023
1 parent 31db2ff commit c43a21d
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 c43a21d

Please sign in to comment.