mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
update tests
This commit is contained in:
parent
4564ee7e0a
commit
5c2465784e
1 changed files with 5 additions and 17 deletions
|
@ -126,12 +126,8 @@ void main() {
|
|||
).thenThrow(Exception());
|
||||
|
||||
final cachedClient = CachedElectrumX(
|
||||
electrumXClient: client,
|
||||
port: 0,
|
||||
failovers: [],
|
||||
server: '',
|
||||
useSSL: true,
|
||||
prefs: Prefs.instance);
|
||||
electrumXClient: client,
|
||||
);
|
||||
|
||||
expect(
|
||||
() async => await cachedClient.getTransaction(
|
||||
|
@ -143,12 +139,8 @@ void main() {
|
|||
|
||||
test("clearSharedTransactionCache", () async {
|
||||
final cachedClient = CachedElectrumX(
|
||||
server: '',
|
||||
electrumXClient: MockElectrumX(),
|
||||
port: 0,
|
||||
useSSL: true,
|
||||
prefs: MockPrefs(),
|
||||
failovers: []);
|
||||
electrumXClient: MockElectrumX(),
|
||||
);
|
||||
|
||||
bool didThrow = false;
|
||||
try {
|
||||
|
@ -174,11 +166,7 @@ void main() {
|
|||
useSSL: true,
|
||||
);
|
||||
|
||||
final client = CachedElectrumX.from(
|
||||
node: node,
|
||||
prefs: MockPrefs(),
|
||||
failovers: [],
|
||||
electrumXClient: MockElectrumX());
|
||||
final client = CachedElectrumX.from(electrumXClient: MockElectrumX());
|
||||
|
||||
expect(client, isA<CachedElectrumX>());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue