Skip to content

Commit

Permalink
simplify binding_test a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-dennis committed Feb 8, 2024
1 parent 1049299 commit 73e9c8d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions topologies/binding/binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,8 @@ func TestReservation_Error(t *testing.T) {
func TestDialOTGTimeout(t *testing.T) {
const timeoutSecs = 42
a := &staticATE{
AbstractATE: &binding.AbstractATE{Dims: &binding.Dims{Name: "my_ate"}},
r: resolver{&bindpb.Binding{}},
dev: &bindpb.Device{Otg: &bindpb.Options{
Timeout: timeoutSecs,
}},
r: resolver{&bindpb.Binding{}},
dev: &bindpb.Device{Otg: &bindpb.Options{Timeout: timeoutSecs}},
}
grpcDialContextFn = func(context.Context, string, ...grpc.DialOption) (*grpc.ClientConn, error) {
return nil, nil
Expand Down Expand Up @@ -270,9 +267,8 @@ func TestDialer(t *testing.T) {
optsFn: func(d *bindpb.Device) *bindpb.Options { return nil },
}
d := &staticDUT{
AbstractDUT: &binding.AbstractDUT{Dims: &binding.Dims{}},
r: resolver{&bindpb.Binding{}},
dev: &bindpb.Device{Name: wantDevName},
r: resolver{&bindpb.Binding{}},
dev: &bindpb.Device{Name: wantDevName},
}

dialer, err := d.Dialer(fakeSvc)
Expand Down

0 comments on commit 73e9c8d

Please sign in to comment.