mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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.
17 lines
286 B
Go
17 lines
286 B
Go
//go:build test_db_postgres
|
|
// +build test_db_postgres
|
|
|
|
package loopdb
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
var (
|
|
testDBType = "postgres"
|
|
)
|
|
|
|
// NewTestDB is a helper function that creates a Postgres database for testing.
|
|
func NewTestDB(t *testing.T) *PostgresStore {
|
|
return NewTestPostgresDB(t)
|
|
}
|