X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/4343ca5fb6cc86eb887951f4fe16063bab29a238..fc0503be49438775c5d08499046852df59bd7377:/build_run_test.go?ds=sidebyside diff --git a/build_run_test.go b/build_run_test.go index ef9c3c0..7e1bb86 100644 --- a/build_run_test.go +++ b/build_run_test.go @@ -29,22 +29,22 @@ func TestBuildRunStopsOnFailedCallsOrQuotaGrowth(t *testing.T) { want string }{ { - name: "no calls", + name: "continues without recorded calls", records: nil, want: "", }, { - name: "growth within the limit", + name: "continues within the quota limit", records: []ModelUsageRecord{quota("10", "40"), quota("25", "41")}, want: "", }, { - name: "growth over the limit", + name: "stops above the quota limit", records: []ModelUsageRecord{quota("10", "40"), quota("12", "55.5")}, want: "x-codex-secondary-used-percent grew from 40 to 55.5", }, { - name: "failed call", + name: "stops after a failed call", records: []ModelUsageRecord{quota("10", "40"), { Status: 400, Error: "model call: HTTP 400",