mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 00:50:21 +01:00
fix(task): revert to context based approach and fix tasks stuck, improve error handling
This commit is contained in:
@@ -113,7 +113,7 @@ func TestCommonFlowWithGracefulShutdown(t *testing.T) {
|
||||
ExpectTrue(t, finished)
|
||||
|
||||
ExpectTrue(t, root.waitFinish(1*time.Second))
|
||||
ExpectError(t, ErrProgramExiting, context.Cause(task.Context()))
|
||||
ExpectError(t, context.Canceled, context.Cause(task.Context()))
|
||||
ExpectError(t, ErrProgramExiting, task.Context().Err())
|
||||
ExpectError(t, ErrProgramExiting, task.FinishCause())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user