Skip to content

Commit 6c01d22

Browse files
committed
Fix Go E2E test: use %f for float64 TotalNanoAiu fields
The TotalNanoAiu field was changed from int to *float64 in the generated types, but the test format strings still used %d. This caused go vet to fail on all three Go CI legs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d728297 commit 6c01d22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go/internal/e2e/rpc_session_state_e2e_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ func TestRpcSessionStateE2E(t *testing.T) {
473473
t.Errorf("Expected non-zero sessionStartTime, got %s", metrics.SessionStartTime)
474474
}
475475
if metrics.TotalNanoAiu != nil && *metrics.TotalNanoAiu < 0 {
476-
t.Errorf("Expected non-negative totalNanoAiu, got %d", *metrics.TotalNanoAiu)
476+
t.Errorf("Expected non-negative totalNanoAiu, got %f", *metrics.TotalNanoAiu)
477477
}
478478
for k, detail := range metrics.TokenDetails {
479479
if detail.TokenCount < 0 {
@@ -482,7 +482,7 @@ func TestRpcSessionStateE2E(t *testing.T) {
482482
}
483483
for modelName, modelMetric := range metrics.ModelMetrics {
484484
if modelMetric.TotalNanoAiu != nil && *modelMetric.TotalNanoAiu < 0 {
485-
t.Errorf("Expected non-negative totalNanoAiu for model %q, got %d", modelName, *modelMetric.TotalNanoAiu)
485+
t.Errorf("Expected non-negative totalNanoAiu for model %q, got %f", modelName, *modelMetric.TotalNanoAiu)
486486
}
487487
for tokenType, detail := range modelMetric.TokenDetails {
488488
if detail.TokenCount < 0 {

0 commit comments

Comments
 (0)