-
Notifications
You must be signed in to change notification settings - Fork 351
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
skipper: fix TestDataClients #2418
Conversation
AlexanderYastrebov
commented
Jun 21, 2023
•
edited
Loading
edited
- fix swarm init error handling
- remove TestDataClients invalid swarm options
return fmt.Errorf("failed to init swarm with options %+v: %w", swops, err) | ||
} | ||
defer theSwarm.Leave() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run does not fail because here it only logged the error and later defer theSwarm.Leave()
caused panic
@@ -1026,21 +1026,23 @@ func TestDataClients(t *testing.T) { | |||
sigs := make(chan os.Signal, 1) | |||
go run(o, sigs, nil) | |||
|
|||
// wait for proxy being ready | |||
for { | |||
for i := 0; i < 10; i++ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After log is changed to return error proxy is never ready due to infinite wait
👍 |
* fix swarm init error handling * remove TestDataClients invalid swarm options Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
77bdc04
to
495d4fc
Compare
Pipeline failed due to #2386 |
👍 |
1 similar comment
👍 |