diff --git a/acceleration/internal/api/connectors_test.go b/acceleration/internal/api/connectors_test.go index f95ea8b44..1d7cb4f02 100644 --- a/acceleration/internal/api/connectors_test.go +++ b/acceleration/internal/api/connectors_test.go @@ -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 diff --git a/acceleration/internal/api/tool_output_retention_test.go b/acceleration/internal/api/tool_output_retention_test.go index adab5efae..1026074c8 100644 --- a/acceleration/internal/api/tool_output_retention_test.go +++ b/acceleration/internal/api/tool_output_retention_test.go @@ -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() { @@ -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() {