github.com/decred/dcrlnd@v0.7.6/kvdb/etcd/walletdb_interface_test.go (about)

     1  //go:build kvdb_etcd
     2  // +build kvdb_etcd
     3  
     4  package etcd
     5  
     6  import (
     7  	"context"
     8  	"testing"
     9  
    10  	"github.com/btcsuite/btcwallet/walletdb/walletdbtest"
    11  )
    12  
    13  // TestWalletDBInterface performs the WalletDB interface test suite for the
    14  // etcd database driver.
    15  func TestWalletDBInterface(t *testing.T) {
    16  	f := NewEtcdTestFixture(t)
    17  	defer f.Cleanup()
    18  	cfg := f.BackendConfig()
    19  	walletdbtest.TestInterface(t, dbType, context.TODO(), &cfg)
    20  }