mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-02 03:56:07 -04:00
AB#2104 early boot logging (#175)
This commit is contained in:
parent
5ceab1c194
commit
a15605475e
15 changed files with 165 additions and 19 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"errors"
|
||||
"testing"
|
||||
|
||||
"github.com/edgelesssys/constellation/coordinator/logging"
|
||||
"github.com/edgelesssys/constellation/coordinator/peer"
|
||||
"github.com/edgelesssys/constellation/coordinator/pubapi/pubproto"
|
||||
"github.com/edgelesssys/constellation/coordinator/role"
|
||||
|
@ -41,7 +42,7 @@ func TestGetVPNPeers(t *testing.T) {
|
|||
|
||||
logger := zaptest.NewLogger(t)
|
||||
cor := &fakeCore{peers: wantedPeers, GetPeersErr: tc.coreGetPeersErr}
|
||||
api := New(logger, cor, nil, nil, nil, nil)
|
||||
api := New(logger, &logging.NopLogger{}, cor, nil, nil, nil, nil)
|
||||
defer api.Close()
|
||||
resp, err := api.GetVPNPeers(context.Background(), &pubproto.GetVPNPeersRequest{})
|
||||
if tc.wantErr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue