diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml new file mode 100644 index 00000000..f8b0c1d6 --- /dev/null +++ b/.github/workflows/issue-translator.yml @@ -0,0 +1,18 @@ +name: 'issue-translator' +on: + issue_comment: + types: [created] + issues: + types: [opened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: tomsun28/issues-translate-action@v2.6 + with: + IS_MODIFY_TITLE: true + # not require, default false, . Decide whether to modify the issue title + # if true, the robot account @Issues-translate-bot must have modification permissions, invite @Issues-translate-bot to your project or use your custom bot. + CUSTOM_BOT_NOTE: Bot detected the issue body's language is not English, translate it automatically. πŸ‘―πŸ‘­πŸ»πŸ§‘β€πŸ€β€πŸ§‘πŸ‘«πŸ§‘πŸΏβ€πŸ€β€πŸ§‘πŸ»πŸ‘©πŸΎβ€πŸ€β€πŸ‘¨πŸΏπŸ‘¬πŸΏ + # not require. Customize the translation robot prefix message. diff --git a/core/mr/mapreduce_test.go b/core/mr/mapreduce_test.go index 252aed51..6ae2060d 100644 --- a/core/mr/mapreduce_test.go +++ b/core/mr/mapreduce_test.go @@ -266,6 +266,19 @@ func TestMapReduce(t *testing.T) { } } +func TestMapReducePanicBothMapperAndReducer(t *testing.T) { + defer goleak.VerifyNone(t) + + _, _ = MapReduce(func(source chan<- interface{}) { + source <- 0 + source <- 1 + }, func(item interface{}, writer Writer, cancel func(error)) { + panic("foo") + }, func(pipe <-chan interface{}, writer Writer, cancel func(error)) { + panic("bar") + }) +} + func TestMapReduceWithReduerWriteMoreThanOnce(t *testing.T) { defer goleak.VerifyNone(t)