go x/oauth2: TestExchangeRequest_JSONResponse失败

hyrbngr7  于 5个月前  发布在  Go
关注(0)|答案(1)|浏览(55)
#!watchflakes
default <- pkg == "golang.org/x/oauth2" && test == "TestExchangeRequest_JSONResponse"

自动创建的问题以收集这些故障。
示例( log ):

--- FAIL: TestExchangeRequest_JSONResponse (0.01s)
    oauth2_test.go:191: Unexpected authorization header,  is found.
    oauth2_test.go:202: Unexpected exchange payload, client_id=CLIENT_ID&client_secret=CLIENT_SECRET&code=exchange-code&grant_type=authorization_code&redirect_uri=REDIRECT_URL is found.

watchflakes

nwlqm0z1

nwlqm0z11#

解:根据题意,我们可以得到以下结论:

  1. 甲、乙两车的速度比为$7:5$,所以当甲车行驶了240km时,乙车行驶了$240\times\dfrac{5}{7}$ $=1200/7$(km);

  2. 乙车再行驶$\dfrac{480}{7}$km到达A地,所以两地相距$\dfrac{1200}{7}+\dfrac{480}{7}$ $=240$(km)

相关问题