(t *testing.T)
| 576 | } |
| 577 | |
| 578 | func TestSingleNodeUpdateParticipant(t *testing.T) { |
| 579 | if testing.Short() { |
| 580 | t.SkipNow() |
| 581 | return |
| 582 | } |
| 583 | _, finish := setupSingleNodeTest("TestSingleNodeRoomList") |
| 584 | defer finish() |
| 585 | |
| 586 | adminCtx := contextWithToken(adminRoomToken(testRoom)) |
| 587 | t.Run("update nonexistent participant", func(t *testing.T) { |
| 588 | _, err := roomClient.UpdateParticipant(adminCtx, &livekit.UpdateParticipantRequest{ |
| 589 | Room: testRoom, |
| 590 | Identity: "nonexistent", |
| 591 | Permission: &livekit.ParticipantPermission{ |
| 592 | CanPublish: true, |
| 593 | }, |
| 594 | }) |
| 595 | require.Error(t, err) |
| 596 | var twErr twirp.Error |
| 597 | require.True(t, errors.As(err, &twErr)) |
| 598 | require.Equal(t, twirp.NotFound, twErr.Code()) |
| 599 | }) |
| 600 | } |
| 601 | |
| 602 | // Ensure that CORS headers are returned |
| 603 | func TestSingleNodeCORS(t *testing.T) { |
nothing calls this directly
no test coverage detected