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:
Geoff Levand 2016-10-05 16:41:06 -07:00
parent beb194967e
commit 8c60a532a6

View File

@ -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)
}