mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
e2e/ctl_v3_alarm_test: Use fixed small buf size
We just need a small chunk of data to test put, so to be consistent across platforms use a fixed size of 64 bytes. Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
beb194967e
commit
8c60a532a6
@ -23,7 +23,7 @@ func TestCtlV3Alarm(t *testing.T) { testCtl(t, alarmTest, withQuota(64*1024)) }
|
||||
|
||||
func alarmTest(cx ctlCtx) {
|
||||
// test small put still works
|
||||
smallbuf := strings.Repeat("a", int(cx.quotaBackendBytes/100))
|
||||
smallbuf := strings.Repeat("a", 64)
|
||||
if err := ctlV3Put(cx, "abc", smallbuf, ""); err != nil {
|
||||
cx.t.Fatal(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user