fix: Adjust pagination limit to be zero-based (#2663)

There isn't a use-case for querying a limit of zero. Using
-1 led to issues when using default parameters for querying.
This commit is contained in:
Kyle Carberry
2022-06-26 15:23:25 -05:00
committed by GitHub
parent 95e854d144
commit 01c31b47a3
7 changed files with 14 additions and 16 deletions

View File

@ -396,7 +396,7 @@ func AwaitWorkspaceAgents(t *testing.T, client *codersdk.Client, build uuid.UUID
}
}
return true
}, 5*time.Second, 25*time.Millisecond)
}, 15*time.Second, 50*time.Millisecond)
return resources
}