Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion acceleration/internal/api/connectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ func (s *ConnectorsSuite) duringADeleteOf(id string, call func() (int, string))
deleted := make(chan int, 1)
go func() { deleted <- s.serverClient.do(http.MethodDelete, "/v1/agents/connectors/"+id, nil, nil) }()
// The two seconds and the ten milliseconds are assertTheWaitEnded's (internal/store/credentials_test.go).
s.Require().Eventually(func() bool { return s.waitingFor("DELETE FROM connector_oauth_clients", id) == 1 },
s.Require().Eventually(func() bool { return s.waitingFor(`DELETE FROM "connector_oauth_clients"`, id) == 1 },
2*time.Second, 10*time.Millisecond, "the delete waits at its DELETE")
type answer struct {
status int
Expand Down
4 changes: 2 additions & 2 deletions acceleration/internal/api/tool_output_retention_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (s *ToolOutputRetentionSuite) TestAnAppPolicyOfNoneRecordsNoneOfAToolsOutpu
result := s.ranTheTool(config.Id, map[string]any{"output": "it ships tomorrow"})

s.Empty(value(result.Text))
s.Equal(map[string]any{"call_id": result.callID, "redacted": true}, value(result.Payload))
s.Equal(map[string]any{"call_id": result.callID, "redacted": true, "tokens": float64(12)}, value(result.Payload))
}

func (s *ToolOutputRetentionSuite) TestAGroupThatKeepsNoneRecordsNoneOfItsToolsOutput() {
Expand All @@ -43,7 +43,7 @@ func (s *ToolOutputRetentionSuite) TestAGroupThatKeepsNoneRecordsNoneOfItsToolsO
result := s.ranTheTool(config.Id, map[string]any{"output": "it ships tomorrow"})

s.Empty(value(result.Text))
s.Equal(map[string]any{"call_id": result.callID, "redacted": true}, value(result.Payload))
s.Equal(map[string]any{"call_id": result.callID, "redacted": true, "tokens": float64(12)}, value(result.Payload))
}

func (s *ToolOutputRetentionSuite) TestASessionDeclaringAToolNoGroupNamesIsRefused() {
Expand Down
Loading