Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nadilas/todo
TODO manager workflow based on temporal
https://github.com/nadilas/todo
Last synced: 24 days ago
JSON representation
TODO manager workflow based on temporal
- Host: GitHub
- URL: https://github.com/nadilas/todo
- Owner: nadilas
- Created: 2021-08-04T09:31:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-04T09:38:23.000Z (over 3 years ago)
- Last Synced: 2024-06-20T06:34:56.350Z (5 months ago)
- Language: Go
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run tests:
```shell
go test ./...
```## Failing unit test:
https://github.com/nadilas/todo/blob/37ea4e9004ac9c746f0e7db71e482d2b79efd242/workflows/todo/workflow_test.go#L372```shell
--- FAIL: TestTodoTestSuite (0.02s)
--- FAIL: TestTodoTestSuite/Test_Reminders (0.01s)
--- FAIL: TestTodoTestSuite/Test_Reminders/reminder_every_day_update_to_less_frequent (0.00s)2021/08/04 11:31:49 DEBUG RequestCancelTimer TimerID 31
2021/08/04 11:31:49 INFO Setup new reminder context taskId t1
2021/08/04 11:31:49 INFO sending reminder
2021/08/04 11:31:49 DEBUG RequestCancelActivity ActivityID 33
2021/08/04 11:31:49 DEBUG RequestCancelActivity ActivityID 34
2021/08/04 11:31:49 ERROR Activity panic. WorkflowID default-test-workflow-id RunID default-test-run-id ActivityType FetchUser Attempt 1 PanicError
assert: mock: The method has been called over 2 times.
Either do one more Mock.On("FetchUser").Return(...), or remove extra call.
This call was unexpected:
FetchUser(*context.timerCtx,string)
```