More test tweaking

This commit is contained in:
Neil Alexander 2022-10-17 16:31:48 +01:00
parent 5c2c479a0a
commit 5bf4a7f72e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -106,7 +106,7 @@ func mustUpdateDeviceLastSeen(
timestamp time.Time, timestamp time.Time,
) { ) {
t.Helper() t.Helper()
_, err := db.ExecContext(ctx, "UPDATE device_devices SET last_seen_ts = $1 WHERE localpart = $2", gomatrixserverlib.AsTimestamp(timestamp), localpart) _, err := db.ExecContext(ctx, "UPDATE userapi_devices SET last_seen_ts = $1 WHERE localpart = $2", gomatrixserverlib.AsTimestamp(timestamp), localpart)
if err != nil { if err != nil {
t.Fatalf("unable to update device last seen") t.Fatalf("unable to update device last seen")
} }
@ -119,7 +119,7 @@ func mustUserUpdateRegistered(
localpart string, localpart string,
timestamp time.Time, timestamp time.Time,
) { ) {
_, err := db.ExecContext(ctx, "UPDATE account_accounts SET created_ts = $1 WHERE localpart = $2", gomatrixserverlib.AsTimestamp(timestamp), localpart) _, err := db.ExecContext(ctx, "UPDATE userapi_accounts SET created_ts = $1 WHERE localpart = $2", gomatrixserverlib.AsTimestamp(timestamp), localpart)
if err != nil { if err != nil {
t.Fatalf("unable to update device last seen") t.Fatalf("unable to update device last seen")
} }