Skip to content

Commit

Permalink
adds test
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianoliveira committed Jun 12, 2024
1 parent 1133a97 commit 0cfb494
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions proxy/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ func TestNewService(t *testing.T) {
serviceURL: "http://localhost:8080",
expectError: true,
},
{
title: "a service with name containing a port is invalid",
serviceName: "ergoproxy",
serviceURL: "http://localhost:3000\n",
expectError: true,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 0cfb494

Please sign in to comment.