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

Update gocommon #740

Merged
merged 1 commit into from
May 8, 2024
Merged

Update gocommon #740

merged 1 commit into from
May 8, 2024

Conversation

rowanseymour
Copy link
Member

No description provided.

Copy link

codecov bot commented May 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.68%. Comparing base (a1f8a06) to head (f5f1041).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #740   +/-   ##
=======================================
  Coverage   74.68%   74.68%           
=======================================
  Files         111      111           
  Lines       13279    13279           
=======================================
  Hits         9917     9917           
  Misses       2649     2649           
  Partials      713      713           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -11,7 +11,7 @@ import (
)

var testChannels = []courier.Channel{
test.NewMockChannel("8eb23e93-5ecb-45ba-b726-3b064e0c56ab", "MB", "2020", "BR", map[string]any{"username": "zv-username", "password": "zv-password"}),
test.NewMockChannel("8eb23e93-5ecb-45ba-b726-3b064e0c56ab", "MB", "2020", "US", map[string]any{"username": "zv-username", "password": "zv-password"}),
Copy link
Member Author

Choose a reason for hiding this comment

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

@norkans7 so seems 12067799294 is a valid local Brazilian number.. and if you pass BR then gocommon currently gives you back +5512067799294 rather than +12067799294.. I think that's ok.. this is a weird test passing US numbers for BR channel.

I guess if we know a channel is giving us international numbers we could manually add + before parsing... or don't pass the channel country because the channel in that case doesn't really have a country.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the BR was from the test copied and pasted

@rowanseymour rowanseymour merged commit a0c89f1 into main May 8, 2024
7 checks passed
@rowanseymour rowanseymour deleted the update_gocommon branch May 8, 2024 18:58
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants