refactor: replace fmt.Sprintf with fmt.Appendf in test

This commit is contained in:
sam committed 2026-07-27 04:03:23 +10:00
1 parent 80cd473559
commit b9ecf37a48
1 file changed
+1 -1
+1 -1
View File
@@ -210,7 +210,7 @@ func TestSSETransportConcurrentSendsGetCorrectResponses(t *testing.T) {
go func(id int) {
defer wg.Done()
resp, err := tr.Send(context.Background(),
[]byte(fmt.Sprintf(`{"jsonrpc":"2.0","id":%d,"method":"test"}`, id)))
fmt.Appendf(nil, `{"jsonrpc":"2.0","id":%d,"method":"test"}`, id))
if err != nil {
results <- fmt.Errorf("id %d: Send: %v", id, err)
return