The first public release of Fabled Minstrel #158
@@ -271,6 +271,11 @@ func TestRegister_OneInviteMakesOneAccountUnderARace(t *testing.T) {
|
|||||||
func TestRegister_AfterTheFirstAccountAnInviteIsTheOnlyWayIn(t *testing.T) {
|
func TestRegister_AfterTheFirstAccountAnInviteIsTheOnlyWayIn(t *testing.T) {
|
||||||
h, pool := testHandlers(t)
|
h, pool := testHandlers(t)
|
||||||
resetInvites(t, h)
|
resetInvites(t, h)
|
||||||
|
// Exactly one account, so the first sign-up below is the second account:
|
||||||
|
// accounts other tests made through sign-up survive dbtest's reset.
|
||||||
|
if _, err := pool.Exec(context.Background(), "DELETE FROM users"); err != nil {
|
||||||
|
t.Fatalf("reset users: %v", err)
|
||||||
|
}
|
||||||
admin := seedUser(t, pool, "admin1", "pw", true)
|
admin := seedUser(t, pool, "admin1", "pw", true)
|
||||||
const token = "test-invite-abc123"
|
const token = "test-invite-abc123"
|
||||||
if _, err := pool.Exec(context.Background(),
|
if _, err := pool.Exec(context.Background(),
|
||||||
|
|||||||
Reference in New Issue
Block a user