Allow running TestTokenForEachDevice independantly

This commit is contained in:
David Robertson 2023-08-08 18:47:52 +01:00
parent b727ac37ed
commit a3ba6cb724
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -100,7 +100,7 @@ func TestTokenForEachDevice(t *testing.T) {
// HACK: discard rows inserted by other tests. We don't normally need to do this,
// but this is testing a query that scans the entire devices table.
db.MustExec("TRUNCATE syncv3_sync2_devices, syncv3_sync2_tokens;")
db.Exec("TRUNCATE syncv3_sync2_devices, syncv3_sync2_tokens;")
tokens := NewTokensTable(db, "my_secret")
devices := NewDevicesTable(db)