Browse Source

close no err

master
zjt 1 year ago
parent
commit
f0339af65b
2 changed files with 1 additions and 2 deletions
  1. 1
    1
      .travis.yml
  2. 0
    1
      rudp_test.go

+ 1
- 1
.travis.yml View File

@@ -6,7 +6,7 @@ install:
6 6
 - go get github.com/mattn/goveralls
7 7
 - go get -d -v ./... && go build -v ./...
8 8
 script:
9
-- go test -v -covermode=count -coverprofile=coverage.out
9
+- go test -v -covermode=count -coverprofile=coverage.out .
10 10
 - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
11 11
 - go vet -x ./...
12 12
 env:

+ 0
- 1
rudp_test.go View File

@@ -131,7 +131,6 @@ func Test_RudpConn(t *testing.T) {
131 131
 	data := make([]byte, MAX_PACKAGE)
132 132
 	n, err := rconn.Read(data)
133 133
 	if err != nil {
134
-		t.Error(err)
135 134
 		return
136 135
 	}
137 136
 	if string(data[:n]) != string(send) {

Loading…
Cancel
Save