2020-05-15 17:59:37 +03:00
|
|
|
// +build kvdb_etcd
|
|
|
|
|
2020-02-18 21:40:08 +03:00
|
|
|
package etcd
|
|
|
|
|
|
|
|
import (
|
2021-02-09 22:19:31 +03:00
|
|
|
"context"
|
2020-02-18 21:40:08 +03:00
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/btcsuite/btcwallet/walletdb/walletdbtest"
|
|
|
|
)
|
|
|
|
|
|
|
|
// TestWalletDBInterface performs the WalletDB interface test suite for the
|
|
|
|
// etcd database driver.
|
|
|
|
func TestWalletDBInterface(t *testing.T) {
|
|
|
|
f := NewEtcdTestFixture(t)
|
|
|
|
defer f.Cleanup()
|
2021-02-09 22:19:31 +03:00
|
|
|
cfg := f.BackendConfig()
|
|
|
|
walletdbtest.TestInterface(t, dbType, context.TODO(), &cfg)
|
2020-02-18 21:40:08 +03:00
|
|
|
}
|