Closed vsbogd closed 3 years ago
Unit tests are broken, looks like the reason is usage of real metrics service which is unavailable:
time="2020-12-12T09:13:49Z" level=warning msg="Service call failed with status code : 404 "
time="2020-12-12T09:13:49Z" level=warning msg="Unable to publish metrics" payload="{\"OrganizationID\":\"ExampleOrganizationId\",\"ServiceID\":\"ExampleServiceId\",\"GroupID\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\"AuthorizedAmount\":10,\"FullAmount\":10,\"ChannelId\":6,\"Nonce\":null}" url="http://demo8325345.mockable.io/contract-api/channel/6/balance"
=== RUN Test_paymentChannelPaymentHandler_PublishChannelStats/#02
time="2020-12-12T09:13:49Z" level=warning msg="Unable to publish metrics" payload="{\"OrganizationID\":\"ExampleOrganizationId\",\"ServiceID\":\"ExampleServiceId\",\"GroupID\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\"AuthorizedAmount\":10,\"FullAmount\":10,\"ChannelId\":6,\"Nonce\":null}" url=badurl/contract-api/channel/6/balance
--- FAIL: Test_paymentChannelPaymentHandler_PublishChannelStats (0.20s)
--- PASS: Test_paymentChannelPaymentHandler_PublishChannelStats/#00 (0.00s)
--- FAIL: Test_paymentChannelPaymentHandler_PublishChannelStats/#01 (0.19s)
payment_handler_test.go:174: paymentChannelPaymentHandler.PublishChannelStats() = {Status: &{0xc4206ba370}}, want <nil>
--- PASS: Test_paymentChannelPaymentHandler_PublishChannelStats/#02 (0.01s)
@anandrgitnirman , could you please take a look
@anandrgitnirman , could you please take a look
will close this out by tomorrow first thing , issue is with mockables used
master build is broken, CircleCI build results