Change setup method signature for tests, no global vars

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-23 22:34:59 -04:00
parent ba5eea5ed4
commit a64a2fb011
15 changed files with 210 additions and 222 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import (
)
func TestStreamService_Posts(t *testing.T) {
setup()
client, mux, teardown := setup()
defer teardown()
var counter int
@@ -162,7 +162,7 @@ loop:
}
func TestStreamService_Posts_DiscardInitial(t *testing.T) {
setup()
client, mux, teardown := setup()
defer teardown()
var counter int