( ctx context.Context, t *testing.T, conn *websocket.Conn, chatID uuid.UUID, )
| 6479 | } |
| 6480 | |
| 6481 | func waitForChatWatchStatusChangeEvent( |
| 6482 | ctx context.Context, |
| 6483 | t *testing.T, |
| 6484 | conn *websocket.Conn, |
| 6485 | chatID uuid.UUID, |
| 6486 | ) codersdk.ChatWatchEvent { |
| 6487 | t.Helper() |
| 6488 | |
| 6489 | for { |
| 6490 | var payload codersdk.ChatWatchEvent |
| 6491 | err := wsjson.Read(ctx, conn, &payload) |
| 6492 | require.NoError(t, err) |
| 6493 | if payload.Kind == codersdk.ChatWatchEventKindStatusChange && payload.Chat.ID == chatID { |
| 6494 | return payload |
| 6495 | } |
| 6496 | } |
| 6497 | } |
| 6498 | |
| 6499 | func TestSendMessageWithModelOverrideUpdatesLastModelConfigID(t *testing.T) { |
| 6500 | t.Parallel() |
no test coverage detected