(t *testing.T)
| 11 | var testUserB = "douyinTestUserB" |
| 12 | |
| 13 | func newExpect(t *testing.T) *httpexpect.Expect { |
| 14 | return httpexpect.WithConfig(httpexpect.Config{ |
| 15 | Client: http.DefaultClient, |
| 16 | BaseURL: serverAddr, |
| 17 | Reporter: httpexpect.NewAssertReporter(t), |
| 18 | Printers: []httpexpect.Printer{ |
| 19 | httpexpect.NewDebugPrinter(t, true), |
| 20 | }, |
| 21 | }) |
| 22 | } |
| 23 | |
| 24 | func getTestUserToken(user string, e *httpexpect.Expect) (int, string) { |
| 25 | registerResp := e.POST("/douyin/user/register/"). |
no outgoing calls