remove other print and tweak backup test timings

This commit is contained in:
Matthew Jaffee 2021-12-27 14:27:59 -06:00
parent bb39b05d05
commit fe54cbf8ae
2 changed files with 1 additions and 2 deletions

View file

@ -66,7 +66,6 @@ type InternalClientOption func(c *InternalClient)
// retry failed requests using exponential backoff.
func WithClientRetryPeriod(waitMax time.Duration) InternalClientOption {
return func(c *InternalClient) {
fmt.Println("client w/ retry policy", waitMax)
rc := retryablehttp.NewClient()
rc.HTTPClient = c.httpClient
rc.RetryWaitMax = waitMax

View file

@ -153,7 +153,7 @@ func TestClusterStuff(t *testing.T) {
t.Fatalf("sending stop command: %v", err)
}
if backupCmd, err = startCmd(
"featurebase", "backup", "--host=pilosa1:10101", fmt.Sprintf("--output=%s", tmpdir+"/backuptest2"), "--retry-period=0.5s"); err != nil {
"featurebase", "backup", "--host=pilosa1:10101", fmt.Sprintf("--output=%s", tmpdir+"/backuptest2"), "--retry-period=50ms"); err != nil {
t.Fatalf("sending second backup command: %v", err)
}
time.Sleep(time.Millisecond * 5) // want the backup to get started, then fail