From 8c60a532a60a680b537e7e467bc7428b9398ea20 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Wed, 5 Oct 2016 16:41:06 -0700 Subject: [PATCH] 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 --- e2e/ctl_v3_alarm_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/ctl_v3_alarm_test.go b/e2e/ctl_v3_alarm_test.go index f0c8fef30..69cab6a14 100644 --- a/e2e/ctl_v3_alarm_test.go +++ b/e2e/ctl_v3_alarm_test.go @@ -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) }