Skip to content

Conversation

@berndverst
Copy link
Member

Description

Removes code duplication for port allocation.

Use dapr/dapr/pkg/testing/network instead

@berndverst berndverst requested review from a team as code owners October 28, 2021 19:30
@berndverst berndverst mentioned this pull request Oct 28, 2021
3 tasks
@codecov
Copy link

codecov bot commented Oct 28, 2021

Codecov Report

Merging #1245 (8f873c0) into master (8b939a2) will decrease coverage by 0.00%.
The diff coverage is 23.52%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1245      +/-   ##
==========================================
- Coverage   34.99%   34.99%   -0.01%     
==========================================
  Files         147      147              
  Lines       12764    12774      +10     
==========================================
+ Hits         4467     4470       +3     
- Misses       7818     7830      +12     
+ Partials      479      474       -5     
Impacted Files Coverage Δ
state/azure/blobstorage/blobstorage.go 26.05% <0.00%> (-1.65%) ⬇️
state/requests.go 0.00% <ø> (ø)
pubsub/kafka/kafka.go 29.78% <38.09%> (+1.02%) ⬆️

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 a806951...8f873c0. Read the comment docs.

@artursouza artursouza merged commit 8a6f7df into dapr:master Oct 28, 2021
@artursouza artursouza added this to the v1.5 milestone Oct 28, 2021
Copy link
Member

@pkedy pkedy left a comment

Choose a reason for hiding this comment

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

Late comments

assert.NoError(t, err)
currentHttpPort, err := network.GetAvailablePort()
ports, err := dapr_testing.GetFreePorts(2)
assert.NoError(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

You want require.NoError here.

assert.NoError(t, err)
currentHttpPort, err = network.GetAvailablePort()
ports, err = dapr_testing.GetFreePorts(2)
assert.NoError(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

You want require.NoError here.

amimimor pushed a commit to amimimor/components-contrib that referenced this pull request Dec 9, 2021
amimimor pushed a commit to amimimor/components-contrib that referenced this pull request Dec 9, 2021
amimimor pushed a commit to amimimor/components-contrib that referenced this pull request Dec 9, 2021
amimimor pushed a commit to amimimor/components-contrib that referenced this pull request Dec 9, 2021
amimimor pushed a commit to amimimor/components-contrib that referenced this pull request Dec 9, 2021
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.

3 participants