mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-21 05:07:22 +00:00
Typos and FIXMEs
This commit is contained in:
committed by
Victor Vieux
parent
7fff719cf3
commit
0fae30e8c3
@@ -104,9 +104,11 @@ func (db *Database) Set(fullPath, id string) (*Entity, error) {
|
||||
return nil, err
|
||||
}
|
||||
defer conn.Close()
|
||||
// FIXME: is rollback implicit when closing the connection?
|
||||
rollback := func() {
|
||||
conn.Exec("ROLLBACK")
|
||||
}
|
||||
// FIXME: use exclusive transactions to avoid race conditions
|
||||
if _, err := conn.Exec("BEGIN"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ func destroyTestDb(db *Database) {
|
||||
func TestNewDatabase(t *testing.T) {
|
||||
db := newTestDb(t)
|
||||
if db == nil {
|
||||
t.Fatal("Datbase should not be nil")
|
||||
t.Fatal("Database should not be nil")
|
||||
}
|
||||
defer destroyTestDb(db)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user