refactor(tests): route, stop, and trip handler tests with the new response model#957
refactor(tests): route, stop, and trip handler tests with the new response model#957Ahmedhossamdev wants to merge 2 commits into
Conversation
…ypes and improved structure
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Performance Smoke Test ResultsStatus: PASSED
Smoke test config: 5 VUs x 30s. Thresholds: p(95) < 300ms, error rate < 1%. Full results uploaded as workflow artifact: k6-smoke-summary. |
|
Performance Smoke Test ResultsStatus: PASSED
Smoke test config: 5 VUs x 30s. Thresholds: p(95) < 300ms, error rate < 1%. Full results uploaded as workflow artifact: k6-smoke-summary. |
| assert.True(t, ok, "routeIds should exist and be an array") | ||
| assert.NotEmpty(t, routeIds, "routeIds should not be empty") | ||
|
|
||
| staticRouteIds, ok := entry["staticRouteIds"].([]any) |
There was a problem hiding this comment.
what's up with the staticRouteIds field? Should you be testing that as part of this test too?



Update the trip, route, stops tests to use new response type models for parsing the JSON responses.