Skip to content

Commit

Permalink
The UT needs a TRC in the trust DB (scionproto#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
juagargi authored and matzf committed Jan 8, 2020
1 parent 2b0cc80 commit b62e55e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/lib/infra/modules/trust/signhelper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/scionproto/scion/go/lib/ctrl"
"github.com/scionproto/scion/go/lib/scrypto"
"github.com/scionproto/scion/go/lib/scrypto/cert"
"github.com/scionproto/scion/go/lib/scrypto/trc"
"github.com/scionproto/scion/go/lib/xtest"
"github.com/scionproto/scion/go/proto"
)
Expand Down Expand Up @@ -76,6 +77,10 @@ func TestBasicVerifierVerify(t *testing.T) {
Signature: []byte("signature"),
},
})
store.trustdb.InsertTRC(context.Background(), &trc.TRC{
ISD: ia110.I,
Version: 1,
})
require.NoError(t, err)
verifier := NewBasicVerifier(store)
src := ctrl.SignSrcDef{
Expand Down

0 comments on commit b62e55e

Please sign in to comment.