some additions to the matchmaker tests for unknown agents.
This commit is contained in:
parent
e31ab7176b
commit
474ac5ec30
2
Makefile
2
Makefile
@ -14,7 +14,7 @@ vet: fmt
|
||||
go vet ./...
|
||||
|
||||
test: build
|
||||
go test -count=1 ./...
|
||||
go test -v -count=1 ./...
|
||||
|
||||
build: generate vet
|
||||
mkdir -p bin
|
||||
|
@ -202,6 +202,7 @@ func (s *MatchMakerTestSuite) Test_ConnectCLientToUnknownAgent() {
|
||||
|
||||
_, err := s.connectClient(publicId, false)
|
||||
s.NotNil(err)
|
||||
s.checkState(0, 0)
|
||||
}
|
||||
|
||||
func (s *MatchMakerTestSuite) Test_multipleAgentsAndClients() {
|
||||
@ -350,4 +351,6 @@ func (s *MatchMakerTestSuite) Test_ConnectWsproxyModeAgentNotFound() {
|
||||
s.NotNil(err)
|
||||
s.True(strings.Contains(err.Error(), "No agent found for rendez-vous id"))
|
||||
s.False(client.clientConnectionInfo.Ok)
|
||||
|
||||
s.checkState(0, 0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user