mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: fix TestAcquireJobWithCancel_Cancel flake (#18441)
This commit is contained in:
@ -368,7 +368,7 @@ func (s *server) AcquireJobWithCancel(stream proto.DRPCProvisionerDaemon_Acquire
|
||||
je = <-jec
|
||||
case je = <-jec:
|
||||
}
|
||||
if xerrors.Is(je.err, context.Canceled) {
|
||||
if database.IsQueryCanceledError(je.err) {
|
||||
s.Logger.Debug(streamCtx, "successful cancel")
|
||||
err := stream.Send(&proto.AcquiredJob{})
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user