Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxu19830126 committed Jan 18, 2025
1 parent a29f44d commit ab25523
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/txn/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,16 @@ func TestOpenTxnWithWaitPausedDisabled(t *testing.T) {

require.Error(t, c.openTxn(op))
}

func TestWaitAbortMarked(t *testing.T) {
c := make(chan struct{})
tc := &txnClient{}
tc.mu.waitMarkAllActiveAbortedC = c
tc.mu.state = normal
tc.mu.activeTxns = map[string]*txnOperator{}
go func() {
close(c)
}()
op := &txnOperator{}
require.NoError(t, tc.openTxn(op))
}

0 comments on commit ab25523

Please sign in to comment.