@@ -1063,3 +1063,247 @@ Node.js v18.20.5
1063
1063
error Command failed with exit code 1.
1064
1064
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
1065
1065
` ` `
1066
+
1067
+ ## Tests
1068
+
1069
+ Unit tests are now all passing :
1070
+
1071
+ ` ` ` rust
1072
+ ubuntu@ip-172-31-27-130:~/relayer$ yarn test
1073
+ yarn run v1.22.22
1074
+ warning ../package.json: No license field
1075
+ $ jest test
1076
+ PASS src/__tests__/utils.ts
1077
+ PASS src/__tests__/queueService.ts (5.701 s)
1078
+ ● Console
1079
+
1080
+ console.log
1081
+ 2024-11-27 21:22:59:2259 info: ETHEREUM queue processor started
1082
+
1083
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1084
+
1085
+ console.log
1086
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1087
+
1088
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1089
+
1090
+ console.log
1091
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1092
+
1093
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1094
+
1095
+ console.log
1096
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1097
+
1098
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1099
+
1100
+ console.log
1101
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1102
+
1103
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1104
+
1105
+ console.log
1106
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1107
+
1108
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1109
+
1110
+ console.log
1111
+ 2024-11-27 21:23:00:230 info: auth1 proof have no processed authority proof. Skipping.
1112
+
1113
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1114
+
1115
+ console.log
1116
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1117
+
1118
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1119
+
1120
+ console.log
1121
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1122
+
1123
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1124
+
1125
+ console.log
1126
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1127
+
1128
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1129
+
1130
+ console.log
1131
+ 2024-11-27 21:23:00:230 info: sig1 proof have no processed signatures proof. Skipping.
1132
+
1133
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1134
+
1135
+ console.log
1136
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1137
+
1138
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1139
+
1140
+ console.log
1141
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1142
+
1143
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1144
+
1145
+ console.log
1146
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1147
+
1148
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1149
+
1150
+ console.log
1151
+ 2024-11-27 21:23:00:230 info: auth1 proof have no processed authority proof. Skipping.
1152
+
1153
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1154
+
1155
+ console.log
1156
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1157
+
1158
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1159
+
1160
+ console.log
1161
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1162
+
1163
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1164
+
1165
+ console.log
1166
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1167
+
1168
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1169
+
1170
+ console.log
1171
+ 2024-11-27 21:23:00:230 info: auth1 proof have no processed authority proof. Skipping.
1172
+
1173
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1174
+
1175
+ console.log
1176
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1177
+
1178
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1179
+
1180
+ console.log
1181
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1182
+
1183
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1184
+
1185
+ console.log
1186
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1187
+
1188
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1189
+
1190
+ console.log
1191
+ 2024-11-27 21:23:00:230 info: Tried to process proof with empty account 8 Skipping.
1192
+
1193
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1194
+
1195
+ console.log
1196
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1197
+
1198
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1199
+
1200
+ console.log
1201
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1202
+
1203
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1204
+
1205
+ console.log
1206
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1207
+
1208
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1209
+
1210
+ console.log
1211
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1212
+
1213
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1214
+
1215
+ console.log
1216
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1217
+
1218
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1219
+
1220
+ console.log
1221
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1222
+
1223
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1224
+
1225
+ console.log
1226
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1227
+
1228
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1229
+
1230
+ console.log
1231
+ 2024-11-27 21:23:00:230 info: No unlocked ETHEREUM accounts found. Skipping ETHEREUM queue processing
1232
+
1233
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1234
+
1235
+ console.log
1236
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1237
+
1238
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1239
+
1240
+ console.log
1241
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1242
+
1243
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1244
+
1245
+ console.log
1246
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1247
+
1248
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1249
+
1250
+ console.log
1251
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1252
+
1253
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1254
+
1255
+ console.log
1256
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1257
+
1258
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1259
+
1260
+ console.log
1261
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1262
+
1263
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1264
+
1265
+ console.log
1266
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1267
+
1268
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1269
+
1270
+ console.log
1271
+ 2024-11-27 21:23:00:230 info: 1 ETHEREUM unlocked accounts found.
1272
+
1273
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1274
+
1275
+ console.log
1276
+ 2024-11-27 21:23:00:230 info: No unprocessed ETHEREUM proofs found. Skipping ETHEREUM queue processing
1277
+
1278
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1279
+
1280
+ console.log
1281
+ 2024-11-27 21:23:00:230 info: ETHEREUM queue processor started
1282
+
1283
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1284
+
1285
+ console.log
1286
+ 2024-11-27 21:23:00:230 info: 2 ETHEREUM unlocked accounts found.
1287
+
1288
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1289
+
1290
+ console.log
1291
+ 2024-11-27 21:23:00:230 info: 2 ETHEREUM unprocessed proofs found.
1292
+
1293
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1294
+
1295
+ console.log
1296
+ 2024-11-27 21:23:00:230 info: Processed 2 ETHEREUM proofs.
1297
+
1298
+ at Console.log (node_modules/winston/lib/winston/transports/console.js:87:23)
1299
+
1300
+ PASS src/__tests__/proofService.ts (5.77 s)
1301
+ A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.
1302
+
1303
+ Test Suites: 3 passed, 3 total
1304
+ Tests: 28 passed, 28 total
1305
+ Snapshots: 0 total
1306
+ Time: 6.509 s
1307
+ Ran all test suites matching /test/i.
1308
+ Done in 7.05s.
1309
+ ` ` `
0 commit comments