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

hello ci world #113

Merged
merged 7 commits into from
Mar 23, 2022
Merged

hello ci world #113

merged 7 commits into from
Mar 23, 2022

Conversation

marcelcorso
Copy link
Contributor

No description provided.

@marcelcorso
Copy link
Contributor Author

hey @dzyanis ! I found a problem.

In this PR I'm running the tests and this is breaking
https://github.com/messagebird/sachet/runs/5597776654?check_suite_focus=true#step:5:33
sometimes.

I think it's because when you iterate over a map the order is random. See https://go.dev/blog/maps#iteration-order

Can you help me fix it? I'm not sure how 🙏🏽

Also I'm not sure the lint is running according to the configuration. It passed on this run https://github.com/messagebird/sachet/runs/5597776651?check_suite_focus=true#step:4:74 but it tried to make a mistake on purpose here: 22909da

@dzyanis
Copy link
Contributor

dzyanis commented Mar 18, 2022 via email

@@ -20,3 +20,8 @@ func Test_errorHandler(t *testing.T) {
errorHandler(w, http.StatusForbidden, err, "test")
assert.Equal(t, expect, w.Body.String())
}

func Test_fail(t *testing.T) {
// TODO also try to fail lint?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add t.Parallel() in the begging of the test

@marcelcorso marcelcorso merged commit 95dd18a into master Mar 23, 2022
@marcelcorso marcelcorso deleted the ci branch March 23, 2022 13:59
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

Successfully merging this pull request may close these issues.

2 participants