mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
More test tweaking
This commit is contained in:
parent
5c2c479a0a
commit
5bf4a7f72e
|
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue