See https://github.com/coder/coder/pull/11096 The linked PR fixes the test, but in order to take advantage of our new `dbfake` infrastructure it needs to be moved elsewhere.