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

feat: create networks with random names #1993

Merged
Prev Previous commit
Next Next commit
fix: more proper returns
  • Loading branch information
mdelapenya committed Dec 15, 2023
commit f23dde5406ca83a9a9b0fed35ccf07b56ca5c96a
6 changes: 4 additions & 2 deletions network/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func ExampleNew() {
Filters: args,
})
if err != nil {
log.Fatalf("failed to list networks: %s", err)
fmt.Println(err)
return
}

fmt.Println(len(resources))
Expand All @@ -94,7 +95,8 @@ func ExampleNew() {

state, err := nginxC.State(ctx)
if err != nil {
panic(err)
fmt.Println(err)
return
}

fmt.Println(state.Running)
Expand Down