TestSeed exercises the real embedded prices.json so we catch a corrupted, empty, or unparseable seed file at test time rather than at server startup. Intentionally makes no assertions about specific prices, since those drift whenever the seed is regenerated from upstream.
(t *testing.T)
| 181 | // Intentionally makes no assertions about specific prices, since those drift |
| 182 | // whenever the seed is regenerated from upstream. |
| 183 | func TestSeed(t *testing.T) { |
| 184 | t.Parallel() |
| 185 | ctx := testutil.Context(t, testutil.WaitShort) |
| 186 | db, _ := dbtestutil.NewDB(t) |
| 187 | require.NoError(t, prices.Seed(ctx, db)) |
| 188 | } |