The package-level defaultRateLimiter drained its token bucket across all test cases, causing later tests to hit ResourceExhausted. Move rateLimiter from a package-level var to a *grpcRateLimiter field on Server; New() allocates a fresh instance (10 req/s, burst 10) per server. Each test's newTestEnv() constructs its own Server, so tests no longer share limiter state. Production behaviour is unchanged: a single Server is constructed at startup and lives for the process lifetime.
25 lines
1.6 KiB
CSS
25 lines
1.6 KiB
CSS
/* MCIAS management UI styles — placeholder */
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
body { font-family: system-ui, sans-serif; margin: 0; padding: 0; background: #f5f5f5; color: #222; }
|
|
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }
|
|
nav { background: #1a1a2e; color: #fff; padding: 0.5rem 1rem; }
|
|
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 960px; margin: 0 auto; }
|
|
.nav-brand { font-weight: bold; font-size: 1.2rem; }
|
|
.nav-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
|
|
.nav-links a { color: #ccc; text-decoration: none; }
|
|
.nav-links a:hover { color: #fff; }
|
|
.btn { display: inline-block; padding: 0.4rem 0.8rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
|
|
.btn-sm { padding: 0.2rem 0.5rem; font-size: 0.8rem; }
|
|
.btn-primary { background: #0d6efd; color: #fff; }
|
|
.btn-secondary { background: #6c757d; color: #fff; }
|
|
.btn-danger { background: #dc3545; color: #fff; }
|
|
.alert { padding: 0.75rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
|
|
.alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
|
|
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
|
|
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
|
|
th, td { padding: 0.5rem; text-align: left; border-bottom: 1px solid #dee2e6; }
|
|
th { background: #e9ecef; }
|
|
input, select { padding: 0.4rem; border: 1px solid #ced4da; border-radius: 4px; }
|
|
.clickable-row { cursor: pointer; }
|
|
.clickable-row:hover { background: #e9ecef; }
|