sdk integration test #71
No reviewers
Labels
No Label
bug
C:CLI
C:Crypto
C:Encoding
C:Proto
C:Types
dependencies
docker
documentation
duplicate
enhancement
go
good first issue
help wanted
high priority
in progress
invalid
javascript
low priority
medium priority
question
Status: Stale
Type: ADR
Type: Build
Type: CI
Type: Docs
Type: Tests
urgent
wontfix
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/laconicd-deprecated#71
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dboreham/sdk-integration-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP:
This allows creation of two containers :
cerc-io/laconicd:local-test
, built from the current local tree andcerc-io/laconic-sdk-tester:local-test
which contains the laconic-sdk project cloned from git in the container build process.Handy scripts
build-laconicd-container.sh
andbuild-sdk-test-container.sh
for building those containers.Then you can run
docker compose up -d
to spin up laconicd and the test runner container networked together.And then you run
./run-tests.sh
to run the laconic-sdk test suite.Alas at present all tests fail with:
Usually this is a symptom of the chain id being wrong. However I've corrected it (I think...) and the errors persis.
So a second cycle of debugging the failures is required.
After running docker compose up I tried to run a cli qurey to the chain and it fails
Ex:
laconicd q bank balances ethm1m7cnnpqk24r42h7dt0t4d7l2qh0uw46muv4qtd Error: post failed: Post "http://localhost:26657": dial tcp 127.0.0.1:26657: connect: connection refused
The ports might be different.
Hmm. This works for me:
This is the correct chain id.
not sure if this error is still an issue:
Error: post failed: Post "http://localhost:26657": dial tcp 127.0.0.1:26657: connect: connection refused
but it looked instantly familiar and this answer has worked for me in the past: https://stackoverflow.com/a/61345315