Skip to content

Commit

Permalink
fix Tim's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Apr 25, 2024
1 parent a5479e2 commit c052c37
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cns/restserver/v2/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package v2
import (
"net"
"net/url"
"os"
"testing"
"time"

Expand All @@ -27,8 +26,7 @@ func TestStartServerWithCNSPort(t *testing.T) {

// Create the service with -p 8000
if err = startService(cnsPort, ""); err != nil {
t.Errorf("Failed to connect to CNS Service on expected port:%s. Error: %v", cnsPort, err)
os.Exit(1)
t.Fatalf("Failed to connect to CNS Service on expected port:%s. Error: %v", cnsPort, err)
}
}

Expand All @@ -40,8 +38,7 @@ func TestStartServerWithCNSURL(t *testing.T) {
// Create the service with -c "localhost:8000"
cnsURL := "tcp://localhost:8500"
if err = startService("", cnsURL); err != nil {
t.Errorf("Failed to connect to CNS Service by this cns url:%s. Error: %v", cnsURL, err)
os.Exit(1)
t.Fatalf("Failed to connect to CNS Service by this cns url:%s. Error: %v", cnsURL, err)
}
}

Expand Down

0 comments on commit c052c37

Please sign in to comment.