Skip to content

Commit

Permalink
sixth commit
Browse files Browse the repository at this point in the history
  • Loading branch information
niuniudeadams committed Oct 13, 2023
1 parent 7f7f6e7 commit 2c859b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pkg/test/init_connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

// test connection init
func TestInitConnection(t *testing.T) {
conn, err := grpc.Dial(":8002", grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.Dial(":10248", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatal("服务端出错,连接不上", err)
}
Expand Down Expand Up @@ -55,7 +55,7 @@ func TestInitConnection(t *testing.T) {
}

func TestMultiConnection(t *testing.T) {
firstconn, err := grpc.Dial(":8002", grpc.WithTransportCredentials(insecure.NewCredentials()))
firstconn, err := grpc.Dial(":10248", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatal("服务端出错,连接不上", err)
}
Expand Down Expand Up @@ -91,7 +91,7 @@ func TestMultiConnection(t *testing.T) {
}

func TestResponseNonce(t *testing.T) {
conn, err := grpc.Dial(":8002", grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.Dial(":10248", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatal("服务端出错,连接不上", err)
}
Expand Down Expand Up @@ -137,7 +137,7 @@ func TestResponseNonce(t *testing.T) {
}

func TestSubScribetionChange(t *testing.T) {
conn, err := grpc.Dial(":8002", grpc.WithTransportCredentials(insecure.NewCredentials()))
conn, err := grpc.Dial(":10248", grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
log.Fatal("服务端出错,连接不上", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/transport/grpc/xDSServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func ShouldRespond(con *model.XDSConnection, request *discovery.DiscoveryRequest

if request.ResponseNonce != previousInfo.NonceSent {

log.Println("ECDS: REQ %s Expired nonce received %s, sent %s",
log.Printf("ECDS: REQ %s Expired nonce received %s, sent %s",
con.Identifier, request.ResponseNonce, previousInfo.NonceSent)
return false, emptyResourceDelta
}
Expand Down

0 comments on commit 2c859b9

Please sign in to comment.