Skip to content

Commit

Permalink
CU-86drumcht - Implement NeonEventListener tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luc10921 committed Apr 3, 2024
1 parent ea06b86 commit e35bcc1
Show file tree
Hide file tree
Showing 6 changed files with 651 additions and 97 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/neon-dappkit",
"comment": "",
"type": "none"
}
],
"packageName": "@cityofzion/neon-dappkit"
}
125 changes: 125 additions & 0 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions packages/neon-dappkit/data/protocol.unit_testnet.single.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ProtocolConfiguration:
Magic: 42
MaxTraceableBlocks: 200000
TimePerBlock: 100ms
TimePerBlock: 300ms
MemPoolSize: 100
StandbyCommittee:
- 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2
Expand All @@ -16,15 +16,15 @@ ApplicationConfiguration:
# LogPath could be set up in case you need stdout logs to some proper file.
# LogPath: "./log/neogo.log"
DBConfiguration:
Type: "inmemory" #other options: 'inmemory','boltdb'
Type: 'inmemory' #other options: 'inmemory','boltdb'
# DB type options. Uncomment those you need in case you want to switch DB type.
# LevelDBOptions:
# DataDirectoryPath: "./chains/unit_testnet"
# BoltDBOptions:
# FilePath: "./chains/unit_testnet.bolt"
P2P:
Addresses:
- ":0" # in form of "[host]:[port][:announcedPort]"
- ':0' # in form of "[host]:[port][:announcedPort]"
DialTimeout: 3s
ProtoTickInterval: 2s
PingInterval: 30s
Expand All @@ -36,19 +36,19 @@ ApplicationConfiguration:
Consensus:
Enabled: true
UnlockWallet:
Path: "wallet1_solo.json"
Password: "one"
Path: 'wallet1_solo.json'
Password: 'one'
RPC:
MaxGasInvoke: 15
Enabled: true
Addresses:
- "127.0.0.1:0" # let the system choose port dynamically
- '127.0.0.1:50012'
EnableCORSWorkaround: false
Prometheus:
Enabled: false #since it's not useful for unit tests.
Addresses:
- ":2112"
- ':2112'
Pprof:
Enabled: false #since it's not useful for unit tests.
Addresses:
- ":2113"
- ':2113'
3 changes: 2 additions & 1 deletion packages/neon-dappkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint .",
"format": "eslint --fix",
"test": "ts-node test/setup-neo-go.ts && ts-mocha --reporter json > ../../mocha-results.json src/**/*.spec.ts",
"test-print": "ts-mocha src/**/*.spec.ts",
"test-print": "ts-node test/setup-neo-go.ts && ts-mocha src/**/*.spec.ts",
"coverage": "nyc pnpm test"
},
"dependencies": {
Expand All @@ -29,6 +29,7 @@
"devDependencies": {
"@cityofzion/neon-core": "5.5.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/adm-zip": "0.5.5",
"@types/elliptic": "6.4.14",
"@types/expect": "^24.3.0",
"@types/follow-redirects": "^1.14.4",
Expand Down
Loading

0 comments on commit e35bcc1

Please sign in to comment.