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

chore(test): Get only first output from create func #321

Merged
merged 3 commits into from
Dec 16, 2021

Conversation

Callisto13
Copy link
Member

Small thing I did not notice at the time.

@Callisto13 Callisto13 added the kind/bug Something isn't working label Dec 13, 2021
@@ -99,7 +99,7 @@ def create_device(config_file, org_id, project_id, device_name, userdata):
f"Creating device {cfg['device']['name']} with config {pretty}")

welder = Welder(token, cfg)
ip = welder.create_all()
ip = welder.create_all()[0]
Copy link
Member

Choose a reason for hiding this comment

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

Can the call to welder.create_all() fail? Although this question has no bearing on the change.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes it can, but it has no impact on what that value is used for, as i have neglected to handle any errors properly and they just panic 😜

Copy link
Member

@richardcase richardcase left a comment

Choose a reason for hiding this comment

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

What would

@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2021

Codecov Report

Merging #321 (b834202) into main (45622b0) will decrease coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #321      +/-   ##
==========================================
- Coverage   58.07%   57.95%   -0.12%     
==========================================
  Files          51       51              
  Lines        2509     2509              
==========================================
- Hits         1457     1454       -3     
- Misses        937      938       +1     
- Partials      115      117       +2     
Impacted Files Coverage Δ
pkg/queue/queue.go 93.93% <0.00%> (-6.07%) ⬇️
pkg/process/process.go 37.73% <0.00%> (-1.89%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45622b0...b834202. Read the comment docs.

@Callisto13 Callisto13 merged commit 7213b9c into liquidmetal-dev:main Dec 16, 2021
@Callisto13 Callisto13 deleted the fix-create-device-message branch December 16, 2021 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants