(t *testing.T)
| 350 | } |
| 351 | |
| 352 | func TestStorage_Client_NotFound(t *testing.T) { |
| 353 | st, _, _, _, _ := setup(t) |
| 354 | ctx := context.Background() |
| 355 | |
| 356 | _, err := st.GetClient(ctx, "mcp_does_not_exist") |
| 357 | if !errors.Is(err, fosite.ErrInvalidClient) { |
| 358 | t.Errorf("err = %v, want fosite.ErrInvalidClient", err) |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | func TestStorage_Session_RoundTrip(t *testing.T) { |
| 363 | st, _, _, userID, clientID := setup(t) |