Skip to content

Commit 12c7693

Browse files
committed
Fix unit test
1 parent 9d86c10 commit 12c7693

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

rpc/server_test.go

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -216,35 +216,17 @@ func TestServerSetReadLimits(t *testing.T) {
216216
shouldFail bool
217217
}{
218218
{
219-
name: "small limit with small request - should succeed",
219+
name: "limit with small request - should succeed",
220220
readLimit: 2048,
221221
testSize: 500, // Small request data
222222
shouldFail: false,
223223
},
224224
{
225-
name: "small limit with large request - should fail",
225+
name: "limit with large request - should fail",
226226
readLimit: 2048,
227227
testSize: 5000, // Large request data that should exceed limit
228228
shouldFail: true,
229229
},
230-
{
231-
name: "medium limit with medium request - should succeed",
232-
readLimit: 10240,
233-
testSize: 5000, // Medium request data
234-
shouldFail: false,
235-
},
236-
{
237-
name: "medium limit with large request - should fail",
238-
readLimit: 10240,
239-
testSize: 20000, // Large request data
240-
shouldFail: true,
241-
},
242-
{
243-
name: "large limit with large request - should succeed",
244-
readLimit: 50000,
245-
testSize: 20000, // Large request data that should fit
246-
shouldFail: false,
247-
},
248230
}
249231

250232
for _, tc := range testCases {

0 commit comments

Comments
 (0)