Skip to content

Commit

Permalink
pickfirst: cleanup tests (#5263)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Mar 22, 2022
1 parent e49486d commit 96bdede
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 349 deletions.
8 changes: 8 additions & 0 deletions balancer_switching_test.go
Expand Up @@ -32,6 +32,7 @@ import (
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/resolver/manual"
"google.golang.org/grpc/serviceconfig"
"google.golang.org/grpc/status"
)

var _ balancer.Builder = &magicalLB{}
Expand Down Expand Up @@ -79,6 +80,13 @@ func startServers(t *testing.T, numServers int, maxStreams uint32) ([]*server, f
}
}

func errorDesc(err error) string {
if s, ok := status.FromError(err); ok {
return s.Message()
}
return err.Error()
}

func checkPickFirst(cc *ClientConn, servers []*server) error {
var (
req = "port"
Expand Down
349 changes: 0 additions & 349 deletions pickfirst_test.go

This file was deleted.

0 comments on commit 96bdede

Please sign in to comment.