Skip to content

Commit dc1a860

Browse files
author
Rob Percival
committed
fixup! Replace SignerFactory with global protobuf handlers for keys
1 parent 8d5f5e5 commit dc1a860

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ go:
99
- 1.8
1010

1111
env:
12-
- GOFLAGS=""
13-
- GOFLAGS="-race"
14-
- GOFLAGS="" WITH_ETCD=true
15-
- GOFLAGS="-race" WITH_ETCD=true
16-
- GOFLAGS="--tags pkcs11" WITH_PKCS11=true
17-
- GOFLAGS=""-race --tags pkcs11" WITH_PKCS11=true
12+
- GOFLAGS=''
13+
- GOFLAGS='-race'
14+
- GOFLAGS='' WITH_ETCD=true
15+
- GOFLAGS='-race' WITH_ETCD=true
16+
- GOFLAGS='--tags pkcs11' WITH_PKCS11=true
17+
- GOFLAGS='-race --tags pkcs11' WITH_PKCS11=true
1818

1919
matrix:
2020
fast_finish: true

server/sequencer_manager_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ func createTestInfo(registry extension.Registry) *LogOperationInfo {
351351
}
352352
}
353353

354-
func fakeKeyProtoHandler(pb proto.Message, signer crypto.Signer, err error) (proto.Message, keys.ProtoHandler) {
355-
return pb, func(ctx context.Context, pb2 proto.Message) (crypto.Signer, error) {
356-
if proto.Equal(pb, pb2) {
354+
func fakeKeyProtoHandler(wantKeyProto proto.Message, signer crypto.Signer, err error) (proto.Message, keys.ProtoHandler) {
355+
return wantKeyProto, func(ctx context.Context, gotKeyProto proto.Message) (crypto.Signer, error) {
356+
if proto.Equal(wantKeyProto, gotKeyProto) {
357357
return signer, err
358358
}
359-
return nil, fmt.Errorf("fakeKeyProtoHandler: got %s, want %s", pb2, pb)
359+
return nil, fmt.Errorf("fakeKeyProtoHandler: got %s, want %s", gotKeyProto, wantKeyProto)
360360
}
361361
}

0 commit comments

Comments
 (0)