Преглед изворни кода

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 година
родитељ
комит
8c60a532a6
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {
 	// 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)
 	}