We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4d033bf commit78210b9Copy full SHA for 78210b9
enterprise/aibridged/aibridged_integration_test.go
@@ -231,9 +231,8 @@ func TestIntegration(t *testing.T) {
231
require.Equal(t,"openai",intc0.Provider)
232
require.Equal(t,"gpt-4.1",intc0.Model)
233
require.True(t,intc0.EndedAt.Valid)
234
-require.WithinDuration(t,dbtime.Now(),intc0.EndedAt.Time,10*time.Second)
235
-require.WithinDuration(t,dbtime.Now(),intc0.StartedAt,10*time.Second)
236
require.True(t,intc0.StartedAt.Before(intc0.EndedAt.Time))
+require.Less(t,intc0.EndedAt.Time.Sub(intc0.StartedAt),5*time.Second)
237
238
prompts,err:=db.GetAIBridgeUserPromptsByInterceptionID(ctx,interceptions[0].ID)
239
require.NoError(t,err)