Files
atomic-swap/protocol/xmrtaker/instance_test.go
Dmitry Holodov adfb0fa602 Test cleanup (#135)
* version independent monerod path with localhost-only binding

* fixed lint target and install script

* created 3rd ETH key constant to avoid race condition in tests

* updated run-integration-tests.sh with the same changes made to run-unit-tests.sh

* new design for paritioning out 2 unique keys to test packages

* restored accidentally deleted tests/alice.key

* removed websocket connection leaks from tests

* made file paths unique between tests with better file cleanup

* fix for the websocket connection leak commit

* reverted increase of GenerateBlocks (didn't mean to commit that)

* fixed maker/taker key that I had reversed

* fixed incorrect zero-balance check

* fixed comment on ClaimOrRefund

* added back sample script for installing go in /usr/local/go

* etchclient creation cleanup using t.Cleanup()

* minor cleanup to ganache_test_keys code

* initial dynamic monero-wallet-rpc implementation for tests

* converted monero tests to use dynamic monero-wallet-rpc services

* unit tests all using dynamic monero-wallet-rpc services

* fixed 2 tests that failed after moving to dynamic monero-wallet-rpc services

* fixed low balance issues in TestSwapState_NotifyClaimed

Co-authored-by: noot <36753753+noot@users.noreply.github.com>
2022-06-29 13:36:03 -04:00

21 lines
421 B
Go

package xmrtaker
import (
"testing"
"github.com/noot/atomic-swap/monero"
"github.com/noot/atomic-swap/tests"
"github.com/stretchr/testify/require"
)
func TestGetAddress(t *testing.T) {
c := monero.NewClient(tests.CreateWalletRPCService(t))
addr, err := getAddress(c, "", "")
require.NoError(t, err)
addr2, err := getAddress(c, swapDepositWallet, "")
require.NoError(t, err)
require.Equal(t, addr, addr2)
}