File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
packages/tfchain_client/test Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ void main() {
56
56
domain: "" );
57
57
} catch (error) {
58
58
expect (
59
- error. toString () ,
60
- startsWith ( 'Failed to apply extrinsic:' ) ,
59
+ error,
60
+ isNotNull ,
61
61
);
62
62
}
63
63
});
Original file line number Diff line number Diff line change @@ -36,11 +36,7 @@ void main() {
36
36
target: "GDHJP6TF3UXYXTNEZ2P36J5FH7W4BJJQ4AYYAXC66I2Q2AH5B6O6BCFG" ,
37
37
amount: 0 );
38
38
} catch (error) {
39
- // Not enough balance
40
- expect (
41
- error.toString (),
42
- startsWith ('Failed to apply extrinsic:' ),
43
- );
39
+ expect (error, isNotNull);
44
40
}
45
41
});
46
42
Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ import 'package:tfchain_client/tfchain_client.dart';
4
4
void main () {
5
5
group ("Query Price Test" , () {
6
6
late QueryClient queryClient;
7
- setUp (() {
7
+ setUp (() async {
8
8
queryClient = QueryClient ("wss://tfchain.dev.grid.tf/ws" );
9
+ await queryClient.connect ();
9
10
});
10
11
11
12
test ('Test Get TFT price' , () async {
You can’t perform that action at this time.
0 commit comments