Browse Source

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>
Geoff Levand 9 years ago
parent
commit
8c60a532a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      e2e/ctl_v3_alarm_test.go

+ 1 - 1
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) {
 func alarmTest(cx ctlCtx) {
 	// test small put still works
 	// 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 {
 	if err := ctlV3Put(cx, "abc", smallbuf, ""); err != nil {
 		cx.t.Fatal(err)
 		cx.t.Fatal(err)
 	}
 	}