Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testでtime.Sleepを使ってるとこをいい感じにする #551

Open
cskd8 opened this issue Mar 22, 2022 · 1 comment
Open

testでtime.Sleepを使ってるとこをいい感じにする #551

cskd8 opened this issue Mar 22, 2022 · 1 comment

Comments

@cskd8
Copy link
Member

cskd8 commented Mar 22, 2022

https://labs.yulrizka.com/en/stubbing-time-dot-now-in-golang/ とか
https://hnakamur.github.io/blog/2020/08/07/mock-time-in-go/ とか

@cskd8
Copy link
Member Author

cskd8 commented Mar 22, 2022

modelだからmockしてないのか

@cskd8 cskd8 changed the title testでtime.Sleepを使ってるとこをdateとdate.Add(time.Hour)にする testでtime.Sleepを使ってるとこwo Mar 22, 2022
@cskd8 cskd8 changed the title testでtime.Sleepを使ってるとこwo testでtime.Sleepを使ってるとこをいい感じにする Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant