File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Node.js CI
2
- on : [push]
2
+ on :
3
+ workflow_dispatch :
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - main
3
8
4
9
concurrency :
5
10
group : ${{ github.workflow }}-${{ github.ref }}
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import {
3
3
ConsistencyLevels ,
4
4
finalityThreshold ,
5
5
consistencyLevelToBlock ,
6
- } from ' ../src/constants/finality.js' ;
6
+ } from " ../src/constants/finality.js" ;
7
7
8
8
describe ( "Finality tests" , function ( ) {
9
9
test ( "Receive expected number of rounds" , ( ) => {
10
- expect ( finalityThreshold ( "Ethereum" ) ) . toEqual ( 64 ) ;
10
+ expect ( finalityThreshold ( "Ethereum" ) ) . toEqual ( 96 ) ;
11
11
expect ( finalityThreshold ( "Algorand" ) ) . toEqual ( 0 ) ;
12
12
expect ( finalityThreshold ( "Solana" ) ) . toEqual ( 32 ) ;
13
13
} ) ;
@@ -41,7 +41,7 @@ describe("Finality tests", function () {
41
41
test ( "Estimates rounds from finalized consistency level" , ( ) => {
42
42
// 100 + (# final rounds)
43
43
expect ( consistencyLevelToBlock ( "Ethereum" , ConsistencyLevels . Finalized , fromBlock ) ) . toEqual (
44
- fromBlock + 64n ,
44
+ fromBlock + 96n ,
45
45
) ;
46
46
expect ( consistencyLevelToBlock ( "Solana" , ConsistencyLevels . Finalized , fromBlock ) ) . toEqual (
47
47
fromBlock + 32n ,
You can’t perform that action at this time.
0 commit comments