Allow the read-only retry test to run under integration load
This commit is contained in:
@@ -45,7 +45,10 @@ func TestReadOnlyAgentRetriesPostAdmissionDeadline(t *testing.T) {
|
|||||||
def := turnDefinition(t)
|
def := turnDefinition(t)
|
||||||
def.Blocks["tools"] = "read"
|
def.Blocks["tools"] = "read"
|
||||||
def.Configs["retries"] = "1"
|
def.Configs["retries"] = "1"
|
||||||
def.Configs["timeout"] = "30ms"
|
// The first prompt waits on ctx.Done, so a longer allowance does not weaken
|
||||||
|
// the deadline assertion. It leaves the successful retry time to finish on
|
||||||
|
// hosts concurrently compiling/running the integration suites.
|
||||||
|
def.Configs["timeout"] = "500ms"
|
||||||
var sessions, prompts atomic.Int64
|
var sessions, prompts atomic.Int64
|
||||||
agent := &AgentClient{OpenCodeClient: OpenCodeClient{command: func(ctx context.Context, _ string, args ...string) ([]byte, error) {
|
agent := &AgentClient{OpenCodeClient: OpenCodeClient{command: func(ctx context.Context, _ string, args ...string) ([]byte, error) {
|
||||||
path := args[2]
|
path := args[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user