Browse Source

tests/e2e: remove unnessary type conversion

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
b01d560be0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/e2e/ctl_v3_alarm_test.go

+ 1 - 1
tests/e2e/ctl_v3_alarm_test.go

@@ -37,7 +37,7 @@ func alarmTest(cx ctlCtx) {
 	}
 	}
 
 
 	// write some chunks to fill up the database
 	// write some chunks to fill up the database
-	buf := strings.Repeat("b", int(os.Getpagesize()))
+	buf := strings.Repeat("b", os.Getpagesize())
 	for {
 	for {
 		if err := ctlV3Put(cx, "2nd_test", buf, ""); err != nil {
 		if err := ctlV3Put(cx, "2nd_test", buf, ""); err != nil {
 			if !strings.Contains(err.Error(), "etcdserver: mvcc: database space exceeded") {
 			if !strings.Contains(err.Error(), "etcdserver: mvcc: database space exceeded") {