mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Another test fixup
This commit is contained in:
parent
0c4dd11bba
commit
af852c22d1
@ -29,10 +29,10 @@ func TestTokensTable(t *testing.T) {
|
||||
aliceToken1FirstSeen := time.Now()
|
||||
|
||||
var aliceToken, reinsertedToken *Token
|
||||
_ = sqlutil.WithTransaction(db, func(txn *sqlx.Tx) error {
|
||||
_ = sqlutil.WithTransaction(db, func(txn *sqlx.Tx) (err error) {
|
||||
// Test a single token
|
||||
t.Log("Insert a new token from Alice.")
|
||||
aliceToken, err := tokens.Insert(txn, aliceSecret1, alice, aliceDevice, aliceToken1FirstSeen)
|
||||
aliceToken, err = tokens.Insert(txn, aliceSecret1, alice, aliceDevice, aliceToken1FirstSeen)
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to Insert token: %s", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user