Added gock.IsDone() to route list and remove tests. Remove content type in route remove command. Removed disturbing data for texts. Remove unneeded test in set command.
This commit is contained in:
@@ -25,6 +25,10 @@ func TestListRoutesEmpty(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Errorf("%s: unexpected error %q", descr, err)
|
||||
}
|
||||
|
||||
if !gock.IsDone() {
|
||||
t.Errorf("No endpoint called")
|
||||
}
|
||||
}
|
||||
|
||||
func TestListRoutesSome(t *testing.T) {
|
||||
@@ -45,4 +49,8 @@ func TestListRoutesSome(t *testing.T) {
|
||||
} else if got := buf.String(); got != want {
|
||||
t.Errorf("%s: got %q, expected %q", descr, buf, want)
|
||||
}
|
||||
|
||||
if !gock.IsDone() {
|
||||
t.Errorf("No endpoint called")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user