Commit 2e2fc07
authored
test: add helper method for overriding env variables (#3022)
* test: add helper method for overriding env variables
Signed-off-by: Victor Yanev <[email protected]>
* chore: improve readability
Signed-off-by: Victor Yanev <[email protected]>
* fix: usages
Signed-off-by: Victor Yanev <[email protected]>
* fix: cacheService.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: utils.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: relay.spec.ts and sdkClient.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: eth_call.spec.ts, eth_estimateGas.spec.ts, ethGetBlockBy.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: use helper method to override envs in acceptance test specs
Signed-off-by: Victor Yanev <[email protected]>
* fix: hapiService.spec.ts and precheck.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: sdkClient.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: cacheService.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: metricService.spec.ts and subscriptionController.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: rateLimiter.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: failing tests
Signed-off-by: Victor Yanev <[email protected]>
* chore: revert some changes in rpc_batch3.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: subscribe.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* chore: add docs with examples to `overrideEnvs` and `withOverriddenEnvs`
Signed-off-by: Victor Yanev <[email protected]>
* chore: address comments
Signed-off-by: Victor Yanev <[email protected]>
* fix: build image test
Signed-off-by: Victor Yanev <[email protected]>
* Merge branch 'main' into add-helper-method-for-overriding-env-variables
Signed-off-by: Victor Yanev <[email protected]>
# Conflicts:
# packages/relay/tests/lib/repositories/hbarLimiter/ethAddressHbarSpendingPlanRepository.spec.ts
# packages/relay/tests/lib/repositories/hbarLimiter/hbarSpendingPlanRepository.spec.ts
* chore: address comments + fix conflicts after merge
Signed-off-by: Victor Yanev <[email protected]>
* chore: optimize TTL tests in localLRUCache.spec.ts
Signed-off-by: Victor Yanev <[email protected]>
* fix: failing unit test after merge from main
Signed-off-by: Victor Yanev <[email protected]>
* chore: optimize imports after merge from main
Signed-off-by: Victor Yanev <[email protected]>
---------
Signed-off-by: Victor Yanev <[email protected]>1 parent 6bc6010 commit 2e2fc07
File tree
52 files changed
+1935
-1951
lines changed- packages
- relay
- src/lib/services/ethService/ethFilterService
- tests
- lib
- clients
- eth
- repositories/hbarLimiter
- services
- cacheService
- debugService
- eth
- metricService
- server/tests
- acceptance
- integration
- koaJsonRpc
- ws-server/tests
- acceptance
- helper
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+1935
-1951
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
| 889 | + | |
889 | 890 | | |
890 | 891 | | |
891 | 892 | | |
892 | | - | |
| 893 | + | |
893 | 894 | | |
894 | 895 | | |
895 | 896 | | |
896 | | - | |
| 897 | + | |
897 | 898 | | |
898 | 899 | | |
899 | 900 | | |
900 | 901 | | |
901 | 902 | | |
902 | 903 | | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
| 904 | + | |
912 | 905 | | |
913 | 906 | | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
| 907 | + | |
918 | 908 | | |
919 | | - | |
920 | | - | |
921 | | - | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
922 | 980 | | |
923 | 981 | | |
924 | 982 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
113 | 111 | | |
114 | 112 | | |
115 | | - | |
116 | | - | |
117 | 113 | | |
118 | 114 | | |
119 | 115 | | |
| |||
149 | 145 | | |
150 | 146 | | |
151 | 147 | | |
152 | | - | |
153 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
0 commit comments