mirror of
https://github.com/lightninglabs/loop
synced 2024-11-04 06:00:21 +00:00
f25b5e9626
This commit fixes faulty timestamps caused by using unix milliseconds as unix seconds on startup. This commit also adds a test for the lightning-terminal issue that first reported the bug.
18 lines
285 B
Go
18 lines
285 B
Go
//go:build !test_db_postgres
|
|
// +build !test_db_postgres
|
|
|
|
package loopdb
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
var (
|
|
testDBType = "sqlite"
|
|
)
|
|
|
|
// NewTestDB is a helper function that creates an SQLite database for testing.
|
|
func NewTestDB(t *testing.T) *SqliteSwapStore {
|
|
return NewTestSqliteDB(t)
|
|
}
|