stream-chat-go
stream-chat-go copied to clipboard
Failing tests when running go test locally
If I clone this repository and run the tests, I see several test failures. I took a look at ci.yml
and I don't see a reason why these would fail unless:
- My trial account has some difference with the key/secret vs. what's used in CI?
- Something has changed, since CI hasn't ran these tests in a few months?
❯ STREAM_KEY={my api key} STREAM_SECRET={my secret} go test
--- FAIL: TestClient_UpdateAppSettings (0.25s)
app_test.go:27:
Error Trace: app_test.go:27
Error: Received unexpected error:
UpdateApp failed with error: "production app can not have disable_auth_checks flag enabled"
Test: TestClient_UpdateAppSettings
--- FAIL: TestClient_DeleteUsers (12.00s)
async_tasks_test.go:81:
Error Trace: async_tasks_test.go:81
Error: Should be true
Test: TestClient_DeleteUsers
Messages: task did not succeed
--- FAIL: TestClient_Devices (0.42s)
device_test.go:23:
Error Trace: device_test.go:23
Error: Received unexpected error:
CreateDevice failed with error: "push provider "" with type "firebase" not found"
Test: TestClient_Devices
Messages: add device
--- FAIL: TestClient_SendMessage_Pending (1.01s)
message_test.go:39:
Error Trace: message_test.go:39
Error: Received unexpected error:
SendMessage failed with error: "pending messages not enabled for this app"
Test: TestClient_SendMessage_Pending
FAIL
exit status 1
FAIL github.com/GetStream/stream-chat-go/v6 130.451s