Skip to content

Commit

Permalink
chore(deps): bump google.golang.org/grpc from 1.42.0 to 1.43.0
Browse files Browse the repository at this point in the history
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](grpc/grpc-go@v1.42.0...v1.43.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] committed Dec 19, 2021
1 parent 7e56f07 commit cab8933
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
go.einride.tech/aip v0.53.0
google.golang.org/api v0.63.0
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa
google.golang.org/grpc v1.42.0
google.golang.org/grpc v1.43.0
google.golang.org/protobuf v1.27.1
gopkg.in/yaml.v2 v2.4.0
gotest.tools/v3 v3.0.3
Expand Down
3 changes: 2 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,9 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD
google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE=
google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34=
google.golang.org/grpc v1.42.0 h1:XT2/MFpuPFsEX2fWh3YQtHkZ+WYZFQRfaUgLZYj/p6A=
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
google.golang.org/grpc v1.43.0 h1:Eeu7bZtDZ2DpRCsLhUlcrLnvYaMK1Gz86a+hMVvELmM=
google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
Expand Down
10 changes: 8 additions & 2 deletions spantest/emulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
databasepb "google.golang.org/genproto/googleapis/spanner/admin/database/v1"
instancepb "google.golang.org/genproto/googleapis/spanner/admin/instance/v1"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"gotest.tools/v3/assert"
)

Expand Down Expand Up @@ -74,7 +75,12 @@ func NewEmulatorFixture(t *testing.T) Fixture {
}
t.Log("emulator host:", emulatorHost)
awaitReachable(t, emulatorHost, 1*time.Second, 10*time.Second)
conn, err := grpc.DialContext(ctx, emulatorHost, grpc.WithInsecure(), grpc.WithBlock())
conn, err := grpc.DialContext(
ctx,
emulatorHost,
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithBlock(),
)
assert.NilError(t, err)
t.Cleanup(func() {
assert.NilError(t, conn.Close())
Expand Down Expand Up @@ -149,7 +155,7 @@ func (fx *EmulatorFixture) NewDatabaseFromStatements(t *testing.T, statements []
createdDatabase, err := createDatabaseOp.Wait(fx.ctx)
assert.NilError(t, err)
t.Log("database:", createdDatabase.String())
conn, err := grpc.Dial(fx.emulatorHost, grpc.WithInsecure())
conn, err := grpc.Dial(fx.emulatorHost, grpc.WithTransportCredentials(insecure.NewCredentials()))
assert.NilError(t, err)
client, err := spanner.NewClient(fx.ctx, createdDatabase.Name, option.WithGRPCConn(conn))
assert.NilError(t, err)
Expand Down
3 changes: 2 additions & 1 deletion spantest/inmemory.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"cloud.google.com/go/spanner/spansql"
"google.golang.org/api/option"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"gotest.tools/v3/assert"
)

Expand Down Expand Up @@ -69,7 +70,7 @@ func (fx *InMemoryFixture) NewDatabaseFromStatements(t *testing.T, statements []
server, err := spannertest.NewServer("localhost:0")
assert.NilError(t, err)
t.Cleanup(server.Close)
conn, err := grpc.Dial(server.Addr, grpc.WithInsecure())
conn, err := grpc.Dial(server.Addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
assert.NilError(t, err)
client, err := spanner.NewClient(fx.ctx, databaseName, option.WithGRPCConn(conn))
assert.NilError(t, err)
Expand Down

0 comments on commit cab8933

Please sign in to comment.