Skip to content

Commit

Permalink
roachtest: apply timeouts to restore tests
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
tbg committed Oct 15, 2018
1 parent 526a0bf commit eb0ec88
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pkg/cmd/roachtest/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,18 @@ func (dul *DiskUsageLogger) Runner(ctx context.Context) error {
}

func registerRestore(r *registry) {
for _, nodeCount := range []int{10, 32} {
for _, item := range []struct {
nodes int
timeout time.Duration
}{
{10, 6 * time.Hour},
{32, 3 * time.Hour},
} {
r.Add(testSpec{
Name: fmt.Sprintf("restore2TB/nodes=%d", nodeCount),
Nodes: nodes(nodeCount),
Stable: true, // DO NOT COPY to new tests
Name: fmt.Sprintf("restore2TB/nodes=%d", item.nodes),
Nodes: nodes(item.nodes),
Timeout: item.timeout,
Stable: true, // DO NOT COPY to new tests
Run: func(ctx context.Context, t *test, c *cluster) {
c.Put(ctx, cockroach, "./cockroach")
c.Start(ctx, t)
Expand Down

0 comments on commit eb0ec88

Please sign in to comment.